What format text document?
If it was from a word processor then there may be meta data indicating the language (or it may just indicate the language of the word processor!)
Alternatively, build up a database of words, ideally common words unique to a language and write some code to check for them.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.