in reply to How to Identify a language

Not a general solution, of course, but Japanese is very easy to distinguish from other CJK languages. Pretty much any Japanese text will contain a significant amount of hiragana characters (syllabary), and no other languages use hiragana (except occasionally to spell Japanese words).

Likewise, modern Korean is almost exclusively written in Korean syllabary these days.