- Home /
Just Input English In TouchScreen Keyboard.
hi. I Want To Get Some Text From User With TouchScreen Keyboard. And For Some Reasons, I Don't Want To User Input Anything Except English. How To Do This? Help Please.
How correct should the English be? Do you only need the individual words to be English? Do you really want the user to always have to check for the smallest typo? Testing the grammar would be very difficult.
Yeah. I Have To Get just English Word And $$anonymous$$y Users Are From a Country That Has Foreign Language. So Any $$anonymous$$gestion???
Answer by DanVioletSagmiller · May 31, 2018 at 02:24 PM
Google provides an API for this: https://cloud.google.com/translate/docs/detecting-language
You would just need to call it with the intended message. Otherwise, I don't believe there is a reasonable way to do this. I had thought of a list of English words, but then if I wrote my name, Dan Sagmiller, I would fail because 'Sagmiller' is not an English word.
Overall, I would seriously look at why the requirement exists though. Often if a requirement feels off the wall or awkward, the best approach is often to change the requirement.
Your answer
![](https://koobas.hobune.stream/wayback/20220612163723im_/https://answers.unity.com/themes/thub/images/avi.jpg)