Package Exports
- @jirimracek/conjugate-esp
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@jirimracek/conjugate-esp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
conjugate-esp
Spanish verb conjugator, uses templates, pattern matching & logic to conjugate verbs in any of the regional varieties of castellano, voseo, formal, canarias
- Project goals: correct, detailed, complete, fast & small (yes, you can have it all)
- 10567 verbs, tested, 98 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
- Current version 1.2.1 - dev packages upgrade, TypeScript 4.0 updates
- Please see updated ROADMAP for future, possibly breaking changes, see CHANGELOG for details of this release
- Updated on Tue 27 Oct 2020 06:07:18 PM CET
- Many thanks to Estudio Sampere Salamanca, España
- Esther González, Ester García, María Ballesteros you're my heroes
Simple usage
- clone repository / download or
- npm i @jirimracek/conjugate-esp
TypeScript
// one of
import { Conjugator } from <path to install> // local install
import { Conjugator } from '@jirimracek/conjugate-esp'; // npm installed
const cng = new Conjugator();
const table = cng.conjugateSync('adscribir', 'formal'); // sync, formal (usted, ustedes)
console.log(JSON.stringify(table, null, 1));
cng.conjugate('soler', 'voseo') // async (promise), voseo
.then(table => console.log(JSON.stringify(table, null, 1))) // returns Result[]
.catch(error => console.error(error)); // should not error JavaScript
// one of:
const CNG = require('<path to install>/dist'); // local install
const CNG = require("@jirimracek/conjugate-esp"); // npm installed
const cng = new CNG.Conjugator();
// ... same code as aboveReturns array of tables or error, either as JSON
- 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
- Simple
- 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
- Simple
- Imperativo
- Afirmativo
- Negativo
Implemented and tested conjugation models
|
|
|
Resources
Estudio Sampere Salamanca - great place to study Spanish
RAE main page and their (paid subscription, much recommended) RAE Enclave
Rodríguez-Rodríguez, G; Carreras-Riudavets, F; Hernández-Figueroa, Z; (2009). Conjugación de verbos en español - Conjugador TIP - excellent book, about the most accurate and complete web conjugator I found
Vadémecum del verbo español, Pedro Gomis Blanco, Laura Segura Calvo - good technical reference on verb usage, but has many errors (tables, verb to model index), use with extreme caution
... and many others