---
title: "orthographyWithDominantScript:languageMap:"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/nsorthography/orthographywithdominantscript:languagemap:"
---

# orthographyWithDominantScript:languageMap:

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

## Declaration

```occ
+ (instancetype) orthographyWithDominantScript:(NSString *) script languageMap:(NSDictionary<NSString *,NSArray<NSString *> *> *) map;
```

## 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)
- [init(dominantScript:languageMap:)](foundation/nsorthography/init(dominantscript:languagemap:).md)
