In the not so good old time, when I hadn’t yet seen the green grass in the land of Python, I was building websites in PHP. And one of them needed a way to identify (i.e. guess) the language of arbitrary text.
One of the most well known open source tools for this seems to be Maciej Ceglowski’s languid, written in Perl. Three years ago, I had this ported to PHP through a RAC project (meaning: While I do own the copyright, I have not written the code). And today, while cleaning up my repositories, I stumbled over it again and decided I might just was well put it our there.
So here it is:
I also briefly considered porting it to Python, but fortunately someone else has already done that: