Reference

Class

RiTa

Name

pos

Description Uses the default PosTagger to tag the input with tags from the Penn tag set or the simplified tag set [a, r, v, n]
Example

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

Parameters
String or String[]the text to be tagged
booleanif true, use simple tags (optional, default=false)
Object
(or Map in Java)
optional way to set the options

{boolean} options.simple:
use simple tags or not

{boolean} options.inline [Only in JS]:
if true, output the result in a string, see posInline()
Returns
String[]Array of part-of-speech tags
Syntax
RiTa.pos(word);
RiTa.pos(word, boolean);
RiTa.pos(word, options);
Platform Java / JavaScript