---
title: "dominantLanguage(forScript:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsorthography/dominantlanguage(forscript:)"
---

# dominantLanguage(forScript:)

Returns the dominant language for the specified script.

## Declaration

```swift
func dominantLanguage(forScript script: String) -> String?
```

## Parameters

- `script`: The specified script.

## Discussion

Discussion The value of this property is a BCP-47 language tag, such as "en" or "fr", that identifies the dominant language.

## See Also

### Determining Correspondences Between Languages and Scripts

- [languageMap](foundation/nsorthography/languagemap.md)
- [dominantLanguage](foundation/nsorthography/dominantlanguage.md)
- [dominantScript](foundation/nsorthography/dominantscript.md)
- [languages(forScript:)](foundation/nsorthography/languages(forscript:).md)
- [allScripts](foundation/nsorthography/allscripts.md)
- [allLanguages](foundation/nsorthography/alllanguages.md)
