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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file pyverbal-1.0.0.tar.gz.

File metadata

  • Download URL: pyverbal-1.0.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8

File hashes

Hashes for pyverbal-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0b2bf757ffdc82b2a3c96c955d2404c739ae8fca5936e3ab421a741ef9d8fae7
MD5 7c314273f90161c02cdac1154f6d48da
BLAKE2b-256 45b068e5a88a4dcb9b9a60e25800a12423a4ee0e591bd12a55715bbc1ce5f22f

See more details on using hashes here.

File details

Details for the file pyverbal-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyverbal-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8

File hashes

Hashes for pyverbal-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07a68768eb243ccd13a6db1eca49e96faa3efff10edc6acf700a119758968268
MD5 271aa4a56e13c1e3e75de62d3bb8b599
BLAKE2b-256 c61348278f073091d7337f689d5e473ce2c73bc5f8672e1e59aa8f8dae4489fc

See more details on using hashes here.

Supported by

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