Reputation: 1251
Question sounds easy as we think but I couldn't find a solution with any of this: regexp, asc, check space around
For example, in text "Hello world", I can allow "Hello" or "world", but I should not allow user-selection like "Hel", "Worl"
So, if user not selecting a full-word, then I should throw an error. Any thoughts please?
Upvotes: 0
Views: 341
Reputation: 56
create a dictory with all english words. then you cound check the text is valid or not.
The all words you could get from web api like below:
http://developer.dictionary.com/
http://googlesystem.blogspot.com/2009/12/on-googles-unofficial-dictionary-api.html
Upvotes: 2