Skip to main content

Verbs conjugation and desconjugation

Project description

PyVerbal

Verb conjugator for Brazilian Portuguese

It is compatible with Python 3.6 and above

Instalation

pip install pyverbal

Usage

Get the conjugator

from pyverbal.conjugation import get_language_conjugator


conjugator = get_language_conjugator("pt-Br")

Conjugate a verb

from pyverbal.lang import PortugueseConjugation


people = [
    "eu",
    "tu",
    "ele",
    "nos",
    "vos",
    "eles"
]

conjugation = PortugueseConjugation.PresenteDoIndicativo
for person in people:
    conjugated_verb = conjugator.conjugate(
        "comer", 
        conjugation,
        person=person
    )
    print(f"For {person}: {verb} conjugated on {conjuugation} is {conjugated_verb}")

Future

  • Implement conjugation for irregular verbs and other cases
  • Implement verb desconjugation
  • Expand the work for English and other languages

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyverbal-1.0.0.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

pyverbal-1.0.0-py3-none-any.whl (17.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page