Testing a statistical language identifier with texts this short is absurd. If you type in four or five words from
https://en.wikipedia.org/wiki/List_of_English_words_of_Frenc...
…do you expect it to return French or English?
https://en.wikipedia.org/wiki/List_of_English_words_of_Frenc...
…do you expect it to return French or English?
Yes you can present edge cases where there is no definite answer, like the one you cite, but this doesn't mean that the task in general is impossible or useless.