Lingua::Ident CPAN Statistical language identification
This module provides statistical language identification. It was originally part of the software I wrote for my master's thesis. You can read about its design either in my thesis, or in this report.