adds language recognition
fixes typo