---
title: "processString(_:)"
framework: naturallanguage
role: symbol
role_heading: Instance Method
path: "naturallanguage/nllanguagerecognizer/processstring(_:)"
---

# processString(_:)

Analyzes the piece of text to determine its dominant language.

## Declaration

```swift
func processString(_ string: String)
```

## Mentioned in

Identifying the language in text

## Discussion

Discussion Use this method to process the provided text and to update the dominantLanguage result and languageHypotheses(withMaximum:) probabilities.

## See Also

### Determining the language

- [dominantLanguage(for:)](naturallanguage/nllanguagerecognizer/dominantlanguage(for:).md)
- [dominantLanguage](naturallanguage/nllanguagerecognizer/dominantlanguage.md)
- [languageHypotheses(withMaximum:)](naturallanguage/nllanguagerecognizer/languagehypotheses(withmaximum:).md)
- [reset()](naturallanguage/nllanguagerecognizer/reset().md)
