Method ForLanguage
ForLanguage(string?)
Gets the dictionary for a language, or null when no pattern set is shipped for it.
public static HyphenationDictionary? ForLanguage(string? languageTag)
Parameters
languageTagstringA BCP-47 language tag such as
en-US, or null when the run states no language. Only the primary subtag is significant: every English locale shares one pattern set, as Word's own American and British hyphenators agree on all but a handful of words.
Returns
- HyphenationDictionary
The dictionary, or null when the language is unsupported.