v3 - add weight in 'detect ' api
We use the detection api to decide whether the language needs to be translated. However the 'detect' api returns inaccurate results at times. Eg. 'hi siri', 'hi google' are detected as 'ca' instead of 'en'. This will then be translated to 'there are siri', which is totally unacceptable in our case.
Currently there is no way for user to correct the detection or put more weight/preference on a particular language. In the above example, although 'en' is in the alternative, they all have the same score of 1. We'd like to add some weight on a particular language to control the 'detect' accuracy. For example, we'd like to see 'hi siri' returns 'en' with score 1 but 'ca' with score 0.998 etc.
Another way is to allow user to customize/improve the English dictionary. Eg. we want to add a few terms/phrases in the dictionary so that those words are NOT detected as other language than 'en'.