Imported from https://github.com/Qatar-Computing-Research-Institute/dialectID