I'm in the process of building an application and i would like to include the ability for my application to read what a user has entered into a text box as they are entering it, and based on the sentence so far present the user with two things.
1) A list of possible phrases they are typing to allow easy auto complete, I'm guessing i would use a preset list of phrases that i could search through to get these suggestions.
2)A list of the most likely word that will come next in the sentence based on the sentence structure or simply based on the last word typed.
My question is, is there anything else out there like this? And what is the best way to search through possibly thousands of strings to find a match as quickly and effectively as possible? Should the strings be stored in a text file on the sd card or directly in code or in some sort of database or xml file or even cvs file? Any ideas would be great