Word Indexer

This code calculates the approximate entry of any word in a given finite list length. It uses Wikipedia's article on Letter Frequency to calculate the given frequencies of the first letter in a word. This is by no means the optimal method to do this, but hopefully it will be close enough for rudimentary applications. A disclaimer to offer is that letter frequencies may change depending upon each preceeding set of letters. This code does not take this into consideration, and instead uses the frequencies referenced above for each iteration of a letter. Furthermore, any non-letter characters are excised from the provided string. Also, this does not automatically skip articles of speech at the beginning, such as "The", "A", or "An". I am a novice to coding, so I'm sure I got some things wrong somewhere.

Enter the length of your list:

Type the word you want to place:

You may be able to place your word, currently blank, at position 0 in your list.