Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Brazilian portuguese verb conjugation
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
data
lib
test
.DS_Store
.document
.gitignore
Gemfile
Gemfile.lock
LICENSE.txt
README.md
README.rdoc
Rakefile
VERSION
conjugue.gemspec

README.md

Conjugue

Brazilian portuguese verb conjugation.

Current verb database uses br.ispell-3.0-beta4.

Usage:

Conjugue.verbo nome, tempo, pessoa, plural

Where:

nome: infinitive form

tempo:

:p => presente do indicativo
:pi => imperfeito do indicativo
:pp => perfeito do indicativo
:pm => mais-que-perfeito do indicativo
:f => futuro do pretérito do indicativo
:fp => futuro do presente do indicativo
:ps => presente do subjuntivo
:pis => imperfeito do subjuntivo
:i => imperativo afirmativo
:in => 'imperativo negativo

pessoa: person number

plural: default: false

Ex:

require 'conjugue'

Conjugue.verbo 'programar', :fp, 3, true  # "Eles programarão"

TODO

  • Tests
  • Guess conjugation for verbs not in the database
  • Consider extending linguistics gem to avoid duplication of efforts
Something went wrong with that request. Please try again.