I am developing an iphone app where users input a few words and I then need to look them up (if they exist basically) in a local hard coded long array of words (my case is more complex to explain, but lets say a user is entering 5 names of cities and I need to look up my array of cities and let him know which onces exist).
What would be the best way to go about this problem? especially since some of the names may be found in a sentence format (for example, someone can enter: "the city of paris", but I have "Paris", so its still good).
Is there any good 3rd part lib for that maybe? I can definitely try to do that manually, but I am sure there are some better solutions.
Thanks.