Nighttime Pachinko Marathon
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@jirimracek/conjugate-esp

2.2.2 • Public • Published

Spanish verb conjugator

Tue 17 Nov 2020 08:22:27 PM CET, version 2.2.2


Build Matrix Coverage Status GitHub

Uses templates, pattern matching & logic to conjugate Spanish verbs, there are no lookup tables, no databases, no dependencies. While the development depends on few external packages, the deployed npm has no dependencies


Goals

  • correct, detailed, complete, fast & small (yes, you can have it all)
  • 10567 tested verbs, uses 97 models
  • includes
    • only current, RAE recognized as known & used verbs
    • regional varieties of castellano, voseo, formal, canarias
    • defectives
    • multiple (dual & triple) conjugations
    • dual participios
    • orthographical changes (1999 and 2010)

TL;DR

  • new in 2.2.x
    • preliminary
      • highlighting
      • removed pronouns from conjugations, they now live in the info object only
      • internal changes, code cleanup
    • pre 1999, 1999-2010, post 2010 orthography rules
    • new methods setOrthography(), getOrthography(), setHighlight(), getHighlight
    • new info header entries ortho, highlight

Want to read

  • see CHANGELOG for details
  • see ROADMAP for future changes and ideas
  • see USAGE for usage, interfaces, return values description, sample output and more

Credits


Compatibility


Installation

  • clone / download gitHub repository
  • npm i @jirimracek/conjugate-esp

Modes / Times

(include rarely employed Indicativo Pretérito Anterior & Subjuntivo Futuro Perfecto / Imperfecto)

  • Impersonal
    • Infinitivo, Gerundio, Participio
  • Indicativo
    • Simple
      • Presente, Pretérito Imperfecto, Pretérito Indefinido, Futuro Imperfecto, Condicional Simple
    • Compuesto
      • Pretérito Perfecto, Pretérito Pluscuamperfecto, Pretérito Anterior, Futuro Perfecto, Condicional Compuesto
  • Subjuntivo
    • Simple
      • Presente, Pretérito Imperfecto Ra, Pretérito Imperfecto Se, Futuro Imperfecto
    • Compuesto
      • Pretérito Perfecto, Pretérito Pluscuamperfecto Ra, Pretérito Pluscuamperfecto Se, Futuro Perfecto
  • Imperativo
    • Afirmativo, Negativo

Implemented and tested conjugation models

AR
hablar
acertar
actuar
aguar
ahincar
aislar
andar
aunar
avergonzar
cabrahigar
colgar
contar
dar
desdar
desosar
engorar
enraizar
errar
estar
forzar
jugar
pagar
regar
rozar
sacar
tropezar
vaciar
volcar
ER
temer
caber
caer
coger
corroer
creer
haber
hacer
mover
nacer
oler
placer
poder
poner
querer
raer
rehacer
responder
rever
romper
saber
ser
tañer
tender
tener
torcer
traer
valer
vencer
ver
volver
yacer
IR
partir
abrir
adquirir
argüir
asir
balbucir
bendecir
ceñir
cohibir
conducir
corregir
decir
delinquir
dirigir
discernir
distinguir
dormir
embaír
erguir
escribir
huir
ir
lucir
oír
plañir
podrir
pudrir
rehenchir
rehuir
reunir
reír
salir
seguir
sentir
servir
venir
zurcir

Resources Used

Install

npm i @jirimracek/conjugate-esp

DownloadsWeekly Downloads

38

Version

2.2.2

License

MIT

Unpacked Size

641 kB

Total Files

26

Last publish

Collaborators

  • avatar