- Home /
Is there a way to match a string to natural language word?
I am toying with making a word game and was looking into some of the mechanics. I have run into a major roadblock though. I can't find a way to match the word the player defines to an English word. Is there an API that I can query? I saw something on the asset store, but I am trying to keep everything free for this game. Any suggestions will help. The game will be HTML based so I could use a web API.
Thanks
Answer by 1337GameDev · Apr 14, 2013 at 09:29 PM
The only way I could see doing this is with a dictionary. Just have a dictionary to match check if an input word is in it. You can find a dictionary online, and just do a search for if it contains the word in question. A dictionary, as text is about 3mb I believe in size for all words.
Hope this helps.
Your answer
Follow this Question
Related Questions
Remove the last word from a string 2 Answers
Google Play - IAP Purchase Server side receipt validation 0 Answers
iTween Paths : Element with the same key already exists in the dictionary 5 Answers
How to use SerializableDictionary in custom inspector? 0 Answers
Dictionary with Vector3 as key cannot be child gameobjects 2 Answers