How to detect the dominant language of a text word?
问题 It's looks good for string but it's not working for me for a word . I am working with search as per as my requirement when user typing any 3 character in the meantime looking to check which language user typing. if I think it should not work with detec0t word but i expect it should be working with Islam word. let tagger = NSLinguisticTagger(tagSchemes:[.tokenType, .language, .lexicalClass, .nameType, .lemma], options: 0) func determineLanguage(for text: String) { tagger.string = text let