Featured Products
Omegabundle for Xojo 2026 Products

Monkeybread Software implements Natural Language features for macOS development.

The Apple Natural Language Framework lets developers analyze natural language text and deduce its language-specific metadata. Apple describes its use as:

The Natural Language framework provides a variety of natural language processing (NLP) functionality with support for many different languages and scripts. Use this framework to segment natural language text into paragraphs, sentences, or words, and tag information about those segments, such as part of speech, lexical class, lemma, script, and language.

Natural Language Now Available for Xojo Development

Monkeybread Complete Plugin 26.3 makes it possible to use the natural language features in Xojo applications targeting macOS and iOS.

The NLLanguageRecognizerMBS class for example, is used to recognize the language of a body of text.

An NLLanguageRecognizerMBS object automatically detects the language of a piece of text. It performs language identification by:

  • Identifying the dominant script of a piece of text. Some languages have a unique script (like Greek), but others share the same script (like English, French, and German, which all share the Latin script).
  • Identifying the language itself.

The identification obtained from an NLLanguageRecognizerMBS object can be either a single most likely language, access through dominantLanguage, or a set of language candidates with probabilities, using languageHypothesesWithMaximum(). You can reset the recognizer to its initial state, to be reused for new analysis.

Use the convenience method, dominantLanguageForString:, to get the most likely language without creating an NLLanguageRecognizer.