<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSSpellServer/registerLanguage(_:byVendor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSSpellServer(im)registerLanguage:byVendor:"
  },
  "title" : "registerLanguage(_:byVendor:)"
}
-->

# registerLanguage(_:byVendor:)

Notifies the receiver of a language your spelling checker can check.

```
func registerLanguage(_ language: String?, byVendor vendor: String?) -> Bool
```

## Parameters

`language`

A string specifying the English name of a language on Apple’s list of languages.

`vendor`

A string that identifies the vendor (to distinguish your spelling checker from those that others may offer for the same language).

## Return Value

Returns <doc://com.apple.documentation/documentation/Swift/true> if the language is registered, <doc://com.apple.documentation/documentation/Swift/false> if for some reason it can’t be registered.

## Discussion

If your spelling checker supports more than one language, it should invoke this method once for each language. Registering a language-vendor combination causes it to appear in the Spelling panel’s pop-up menu of spelling checkers.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)