posTagAsciiNative
Performs rule-based part-of-speech tagging on ASCII text using native implementation.Parameters
The input text to tag. Must be ASCII-compatible.
Returns
Array of tagged tokens with position information.
POS Tag Types
Supported POS tags:- NN - Noun, singular or mass
- NNP - Proper noun, singular
- CD - Cardinal number
- VBG - Verb, gerund or present participle
- VBD - Verb, past tense
- RB - Adverb
- DT - Determiner
- CC - Coordinating conjunction
- PRP - Personal pronoun
- VB - Verb, base form
Example
posTagAscii
Alias forposTagAsciiNative. Provides the same functionality with a shorter name.
Performance
The native implementation uses optimized C/Rust code for high-performance tagging:- Fast: Processes thousands of tokens per millisecond
- Zero-copy: Operates directly on byte arrays
- Low memory: Minimal allocation overhead
Usage Notes
This is a rule-based tagger with limited accuracy. For higher accuracy, use
posTagPerceptronAscii which employs a machine learning model.Related APIs
- Perceptron Tagger - ML-based POS tagging
- Frequency Distributions - Token frequency analysis