Functions

NLP++ provides a variety of predefined functions for managing the parse tree and knowledge base. Convenient functions also support output formatting, string handling, and spelling. The spell functions can be used to help with unknown word lookup by a text analyzer.

As NLP++ evolved from an "action language" for rules, the Actions section provides functions that expect to apply before, during, and after the matching of a rule.  They are "rule-aware," in that they can address the matched nodes, the suggested concept, and the "dominating" or context nodes within which the rule match occurred.  The actions are deprecated in the sense that some of them cannot accept full NLP++ expressions as function arguments, but require literal arguments.  Some actions, such as group, have been upgraded to full-fledged NLP++ functions and are listed in both the Actions and Functions sections.

Note: Boolean type is currently implemented by integer 1 (or non-zero) for true and 0 for false. Floating point type is newly (but incompletely) available.  Char type is not implemented.

See Also

Database Functions

Special Functions

Knowledge Base Functions

Formatting and I/O Functions

Math Functions

Parse Tree Functions

String Functions

Spelling Functions

Web Functions

 

Actions