---
title: "init(dominantScript:languageMap:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/nsorthography/init(dominantscript:languagemap:)"
---

# init(dominantScript:languageMap:)

Creates an orthography object with the specified dominant script and language map.

## Declaration

```swift
init(dominantScript script: String, languageMap map: [String : [String]])
```

## Parameters

- `script`: The dominant script.
- `map`: A dictionary mapping ISO 15924 script codes to arrays of BCP-47 language tags.

## Return Value

Return Value An orthography object initialized with the specified script and language map.

## Discussion

Discussion You typically use the defaultOrthography(forLanguage:) method to create orthography objects with automatic language mapping. Use this initializer only if you need to override the script associated with one or more languages.

## See Also

### Creating Orthography Objects

- [defaultOrthography(forLanguage:)](foundation/nsorthography/defaultorthography(forlanguage:).md)
