Reference

Class

RiTa

Name

RiTa.getPosTags

Description Uses the default PosTagger to tag the input with tags from the PENN tag set or the simplified WordNet tag set [a, r, v, n]
Syntax
RiTa.getPosTags(word);
RiTa.getPosTags(wordArr);
RiTa.getPosTags(word, bool);
RiTa.getPosTags(wordArr, bool);
Parameters
String OR String[]the text to be tagged
booleanif true, use WordNet syle tags (optional, default=false)
Returns
String[] of part-of-speech tags
Example

RiTa.getPosTags("I am a cat.");
// returns -> [ "prp", "vbp", "dt", "nn", "." ]

Platform Java / Javascript