RULEXDB_CLASSIFY(3)
π RULEXDB_CLASSIFY(3) π
okay so bestie, welcome to the rulexdb_classify page from the Library Functions Manual π this is a C library situation, and we're gonna vibe through it together, i promise it's not scary π
β¨ NAME β¨
rulexdb_classify β test specified word whether it represents a lexical base
πΈ SYNOPSIS πΈ
#include <rulexdb.h>
int rulexdb_classify(RULEXDB *rulexdb, const char *s);
π¦ DESCRIPTION π¦
okay so here's the tea π β rulexdb_classify() takes the word that s points at and tests it, trying to figure out whether it can be treated as a lexical base according to the rulexdb database that the rulexdb argument references.
that's it. that's the whole function. it's giving "is this word a lexical base or not" energy, no cap β¨
π RETURN VALUE π
this part is lowkey iconic because the logic is a lil backwards but we love her:
RULEXDB_SUCCESSβ which is zero β comes back when the word represents no lexical base π yes bestie, zero means nope, we don't make the rules (well, this library does, and this is what it chose)- a positive value β
RULEXDB_SPECIALβ comes back when the word can be treated as a lexical base π slay - a negative error code β when something is wrong π
π ERRORS π
the negative codes you might catch, and what they mean:
RULEXDB_FAILUREβ the referenced database has not been opened, the internal data structures are corrupted, or some other general failure has occurred. it's giving "everything is on fire" π₯RULEXDB_EMALLOCβ internal memory allocation error. the malloc said no πRULEXDB_EPARMβ invalid parameters are specified. bestie check your args π«Ά
π SEE ALSO π
the whole friend group, go say hi:
rulexdb_close(3)rulexdb_dataset_name(3)rulexdb_discard_dictionary(3)rulexdb_discard_ruleset(3)rulexdb_fetch_rule(3)rulexdb_lexbase(3)rulexdb_load_ruleset(3)rulexdb_open(3)rulexdb_remove_item(3)rulexdb_remove_rule(3)rulexdb_remove_this_item(3)rulexdb_retrieve_item(3)rulexdb_search(3)rulexdb_seq(3)rulexdb_subscribe_item(3)rulexdb_subscribe_rule(3)
π AUTHOR π
Igor B. Poretsky <poretsky@mlbox.ru> β the main character who wrote all of this π«Ά
and that's the whole page bestie, you ate it π this manual page was served up on February 21, 2012 and lives under the RULEXDB_CLASSIFY(3) name, so go classify some words, periodt β¨ππ¦
π¦ where this page comes from
- debian trixie: librulexdb-dev 3.8.6-1 Β· LGPL-2.1-or-later
- ubuntu questing: librulexdb-dev 3.8.6-1
- ubuntu resolute: librulexdb-dev 3.8.6-1build1 Β· LGPL-2.1-or-later
- ubuntu stonking: librulexdb-dev 3.8.6-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms