Code Monkey home page Code Monkey logo

conjugator's Introduction

GitHub Actions status | sdras/awesome-actions codecov PyPI

Conjugator

A conjugator for spanish verbs. You have to provide a spanish verb and the type of the desired conjugation.

Description

Installation:

pip install conjugator

Example usage:

>>> from conjugator.spanish import conjugate
>>> conjugate("buscar", "Indicative")
             Person   Present   Preterite   Imperfect  Conditional      Future
0                yo     busco      busqué     buscaba     buscaría     buscaré
1                tú    buscas    buscaste    buscabas    buscarías    buscarás
2       él/ella/Ud.     busca       buscó     buscaba     buscaría     buscará
3          nosotros  buscamos    buscamos  buscábamos  buscaríamos  buscaremos
4          vosotros   buscáis  buscasteis   buscabais   buscaríais   buscaréis
5  ellos/ellas/Uds.    buscan    buscaron    buscaban    buscarían    buscarán

The following types are supported:

'Indicative',
'Subjunctive',
'Imperative',
'Continuous (Progressive)',
'Perfect',
'Perfect Subjunctive'

The conjugate-method returns a pandas DataFrame object.

Example:

>>> df = conjugate("bailar", "Subjunctive")
>>> df[["Person", "Present"]]
             Person   Present
0                yo     baile
1                tú    bailes
2       él/ella/Ud.     baile
3          nosotros  bailemos
4          vosotros   bailéis
5  ellos/ellas/Uds.    bailen

For further reference read: https://pandas.pydata.org/pandas-docs/stable/getting_started/comparison/comparison_with_sql.html

conjugator's People

Contributors

plysytsya avatar pavlolysytsya avatar

Stargazers

 avatar Shipra Shalini avatar

Watchers

 avatar

Forkers

pavlolysytsya

conjugator's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.