Rosetta is a source language analyzer that detects the language the source file is written in. To do this it uses a naive bayes classifier.