Conjugates most common english verbs for all persons, tenses, standard aspects, and modern moods (with active diathesis). Standard and exceptional spelling rules are obeyed.
Verbs::Conjugator.conjugate :be, :tense => :past, :person => :second, :plurality => :singular, :aspect => :perfective # => :were 'be nice'.verb.conjugate :subject => 'Matz' # => "Matz is nice" :sleep.verb.conjugate :tense => :future, :person => :first, :plurality => :singular, :aspect => :progressive, :subject => true # => :"I will be sleeping"
gem install verbs
This library takes a rather strict view of English verb conjugation.
:future. Defaults to
:third. Defaults to
:plural. Defaults to
:prospective. Defaults to
:perfective for past tense).
See below for a guide to verb aspect.
:subjunctive. Defaults to
Set this to a string to prepend the conjugated verb with it. When set to
true, a standard personal pronoun will be used.
:passive. Defaults to
Tense/aspect quick reference
|I used to accept||past||habitual|
|I had accepted||past||perfect|
|I was accepting||past||progressive|
|I was about to accept||past||prospective|
|I have accepted||present||perfect|
|I am having accepted||present||perfective|
|I am accepting||present||progressive|
|I am about to accept||present||prospective|
|I will accept||future||habitual|
|I will have accepted||future||perfect|
- Pat Byrd and Tom McKlin
- Rick Harrison
- Anatoli Makarevich for #6
- Nikita Kamaev for #35
Copyright (c) 2012 Andy Rossmeissl. See LICENSE for details.