Spanish Conjugator

2.3.9474 · active · verified Thu Apr 16

Spanish Conjugator is a Python library designed to conjugate Spanish verbs. It provides a `Conjugator` class with a `conjugate` method that takes a root verb, tense, mood, and an optional pronoun to return the correctly conjugated form. The library is actively maintained and currently at version 2.3.9474, with a release cadence that appears to be driven by development cycles rather than a fixed schedule.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to import the `Conjugator` class and use its `conjugate` method. It shows examples for different tenses, moods, and pronouns, including the case where the pronoun is optional for the present indicative tense.

from spanishconjugator import Conjugator

# Conjugate 'hablar' in imperfect indicative for 'yo'
imperfect_conjugation = Conjugator().conjugate('hablar', 'imperfect', 'indicative', 'yo')
print(f"'hablar' in imperfect indicative for 'yo': {imperfect_conjugation}")

# Conjugate 'comer' in present indicative for 'nosotros'
present_conjugation = Conjugator().conjugate('comer', 'present', 'indicative', 'nosotros')
print(f"'comer' in present indicative for 'nosotros': {present_conjugation}")

# Conjugate 'vivir' in future simple for 'ellos'
future_conjugation = Conjugator().conjugate('vivir', 'future', 'indicative', 'ellos')
print(f"'vivir' in future simple for 'ellos': {future_conjugation}")

# Conjugate 'hablar' in present indicative without a pronoun (optional parameter)
present_indicative_no_pronoun = Conjugator().conjugate('hablar', 'present', 'indicative')
print(f"'hablar' in present indicative (no pronoun): {present_indicative_no_pronoun}")

view raw JSON →