General purpose language identification tools such as TextCat (Cavnar and Trenkle, 1994) and langid.py (Lui and Baldwin, 2012) can identify 50-100 languages with accuracy of 86-99%.
these tools have not considered discrimination between closely related language varieties.