wooorm / franc

Natural language detection
https://wooorm.com/franc/
MIT License
4.15k stars 175 forks source link

How can I do the same thing on html? #112

Closed adoin closed 1 year ago

adoin commented 1 year ago

Any repo or tools?

wooorm commented 1 year ago
const element = document.querySelector('.my-element')
const text = element.innerText
const result = franc(text)