Reference

Class

RiString

Name

posAt

Description Returns the part-of-speech tag for the word at 'index' (from the PENN tag set), using RiTa.tokenize() and RiTa.getPosTags()
Syntax
posAt(index);
Parameters
intthe word index
Returns
Stringthe pos
Example
myRiString = new RiString("He ate the apple."); 
myRiString.posAt(0); // returns -> prp
Platform Java / Javascript