Reference

Class

RiTa

Name

RiTa.conjugate

Description Conjugates the 'verb' according to the specified options
Syntax
RiTa.conjugate(verb, args);
Parameters
Stringthe verb stem
Object
(or Map in Java)
args containing the relevant options for the conjugator
Returns
Stringthe conjugated verb
Example
// Java

Map args = new HashMap();
args.put("tense", RiTa.PAST_TENSE);
args.put("number", RiTa.SINGULAR);
args.put("person", RiTa.FIRST_PERSON);

String c = RiTa.conjugate("swim", args);


// Javascript

var args = {
tense: RiTa.PRESENT_TENSE,
number: RiTa.SINGULAR,
person: RiTa.THIRD_PERSON
};

var c = RiTa.conjugate('swim', args);

Platform Java / Javascript