iOS, Machine Learning, iOS App Development, Artificial Intelligence, Programming.
"Hola" let recognizer = NLLanguageRecognizer() recognizer.processString(str) if let languageCode = recognizer.dominantLanguage?.rawValue{ let detectedLangauge = Locale.current.localizedString(forIdentifier: languageCode) print(detectedLangauge) //prints Spanish } The NLLanguageRecognizer class