Reference

Class

RiTa

Name

conjugate

Description Conjugates the 'verb' according to the specified options
Example
// JavaScript

opts = {
tense: RiTa.PRESENT,
number: RiTa.SINGULAR,
person: RiTa.THIRD
};

result = RiTa.conjugate('swim', opts);


// Java

opts = new HashMap();
opts.put("tense", RiTa.PAST);
opts.put("number", RiTa.PLURAL);
opts.put("person", RiTa.FIRST);

result = RiTa.conjugate("swim", opts);

Parameters
Stringthe root verb
Objectobject containing the relevant options (tense, number, person...) for the conjugator

{int} options.tense:
[RiTa.PAST, RiTa.PRESENT, or RiTa.FUTURE]

{int} options.number:
[RiTa.SINGULAR or RiTa.PLURAL]

{int} options.person:
[RiTa.FIRST, RiTa.SECOND or RiTa.THIRD]

{int} options.form:
[RiTa.INFINITIVE or RiTa.GERUND]

{boolean} options.passive

{boolean} options.progressive

{boolean} options.interrogative

{boolean} options.perfect
Returns
Stringthe conjugated verb
Syntax
RiTa.conjugate(verb, opts);
Platform Java / JavaScript