How to detect language of text?

前端 未结 5 553
醉梦人生
醉梦人生 2020-12-14 20:50

I have a form which lets users input text snippets. So how can figure out the language of the entered text?

Specifically these languages for now:

Arabic: هذه

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-14 21:20

    You could use https://detectlanguage.com/ which is a webservice build around CLD2.

提交回复
热议问题