I have a table in PostgreSQL where a column is a text. I need a library or tool that can identify the language of each text for a test purpose.
There is no need for
I found a library called TextCat, which is available under LGPL. I can't say what the quality of its identification is, but it's got an online demo form, so maybe you can throw some text at it before deciding if its worth downloading.
It's also written in Perl, so if you do want to use it, the approach in filiprem's answer would be a good start point.