I tried training a classifier, then found a better solution.
The Chrome and Edge browsers have built-in APIs for language detection, translation, summarization, and more, using locally ...