unknownword

Purpose

Finds documents that contain non-vocabulary words.

Syntax

unknownword(dictionary_category [, dictionary_name] [, term, …])

Arguments

The argument dictionary_category is required. It identifies the type of dictionaries the function is supposed to use. The argument is case-insensitive and supports the following values:

  • Companies;

  • GeoAdministrative;

  • HumanNames;

  • Morphology;

  • Organizations;

  • Phrases;

  • Semantics;

  • Statistics;

  • Synonyms;

  • StopLists;

  • WordClasses;

  • UserDictionary.

In order to narrow the search, an optional argument dictionary_name can be added, which is used to select certain dictionaries of the chosen category. If the argument is omitted, all the dictionaries in the specified category are considered. Instead of the dictionary_name argument, one can use the named parameter dict.

Thus, unknownword(Morphology, Default) = unknownword(Morphology, dict:=Default). Moreover, unknownword(WordClasses) supports the parameter сlass, which specifies an entry in a dictionary of the WordClasses. It is possible to list several entries using a vertical bar, for example, unknownword(WordClasses, сlass:=positive|negaive).

The optional arguments term_1, …​, term_n specify the arguments to search for.

Returned Value

Documents matching the query.

Examples

unknownword("morphology") matches words absent in Morphology dictionaries;

unknownword("morphology", "default", term(my_wordclass)) matches words from wordclass "my_wordclass" that are absent in Morphology default dictionary;

unknownword("geoadministrative") matches words absent in GeoAdministrative dictionaries;

unknownword("geoadministrative", "default") matches words absent in GeoAdministrative default dictionary.