When you build the dictionary, can you use the length of the prefix and the length of the word to weight the frequencies?

Our dictionary lists released and received as the most common words that begin with r. But when the user types 're', we should really predict short words like 'red', 'rest' and 'read' before long words.  I understand that we can't do this easily while searching the dictionary as it is currently structured.  But does the data structure allow you to take prefix length and word length account when building the dictionary?