Language detection algorithm now uses different iterations on the languages to check the various types of matches