rulexdb_classify(3)

rulexdb_classify3

Test specified word whether it represents a lexical base

Usage

#include <rulexdb.h>

int rulexdb_classify(RULEXDB *rulexdb, const char *s);

Overview

The rulexdb_classify() function tests the word pointed by s argument trying to determine if it can be treated as a lexical base according to the rulex database referenced by rulexdb argument.

Return value

The rulexdb_classify() function returns RULEXDB_SUCCESS which is zero when the word represents no lexical base, positive value RULEXDB_SPECIAL when the word can be treated as a lexical base, or negative error code if something is wrong.

Errors

RULEXDB_FAILURE

Referenced database has not been opened, internal data structures are corrupted or some other general failure has occurred.

RULEXDB_EMALLOC

Internal memory allocation error.

RULEXDB_EPARM

Invalid parameters are specified.

Author

Igor B. Poretsky <[email protected]>.

From librulexdb-dev 3.8.6-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.