Releases: jirimracek/conjugate-esp
Releases · jirimracek/conjugate-esp
Stable minor 2.3.x
- 2.3.0 release notes apply
- New public methods
- getDefectiveVerbList()
- getDefectiveVerbListSync()
- getVersion()
Stable 2.3.x - possible breaking changes
2.3.x changes vs 2.2.x
-
Info
- pronominal renamed to reflexive
-
conjugate() changes (2)
- 2.2.2x, old behaviour:
- conjugate() used to return Result[] | ErrorType
- conjugate() accepted only base version of the verb
- the result of conjugation had a mix of reflexive / nonreflexive conjugations
- Examples
- conjugate('hablar') would return conjugations for both hablar and hablarse
- conjugate('abar') would return conjugations for abarse (abar doesn't exist)
- Inconsistency
- user asks for 'abar' and gets 'abarse', asks for 'hablar' and gets both 'hablar' and 'hablarse'
- 2.3.x, new behaviour:
- conjugate() returns Result[] | string (error string, ErrorType got nuked as an overkill)
- conjugate() requires exact version of the verb, either reflexive or not, the return array will contain only the version requested
- Examples
- conjugate ('hablar') will result in hablar conjugation only
- conjugate ('hablarse') will result in hablarse conjugation only
- conjugate ('abar') will result in unknown verb error
- conjugate ('abarse') will return 'abarse' conjugation
- Hint:: getVerbList() returns a complete list of known verbs (with respect to the above, it will contain 'abarse' but not 'abar'). Use to verify your verb before you conjugate.
- Examples
- 2.2.2x, old behaviour:
-
Other public interfaces:
- getVerbList()
- 2.2.x, old behaviour:
- returned only nonreflexive verb names (made no distinction between reflexive & nonreflexive)
- 2.3.x, new behaviour:
- returns full list of exact verb names - if a verb (reflexive or nonreflexive) is in the list, it can be conjugated. Both hablar and hablarse are present, there is no abar, only abarse, hablar is distinct from hablarse
- 2.2.x, old behaviour:
- exports
- all necessary exports are now in the index file, nothing prevents you from importing from elsewhere but it should be unnecessary
- highlight tags
- the tags parameter changed slightly from
- {start: string, end: string, deleted: string} to
- {start: string, end: string, del: string
- the tags parameter changed slightly from
- getVerbList()
Stable 2.2.2, ortho changes, highlights
- new, orthography. Use either pre or post 2010 orthography. Controlled by a new parameter to constructor. See USAGE for details - there is also a discussion in ROADMAP. There is a limited set of verbs this applies to again, see the above for more.
- new, highlighting. Controlled by a new parameter to constructor, an object {start: string, end: string, deleted: string}. If set, will determine the changes between regular and irregular conjugation (if applicable - this does nothing for regular verbs) and will insert the marks at a start point, end point and will also insert a mark if there was a deletion without replacement (try this with tener and see 1st person indicativo preterito indefinido). See USAGE for more info
- the above means there are 2 more optional entries in the resulting Info object (part of result)
- removed, pronouns (yo, tú, él, nosotros, ....) are no longer included with each conjugation line. There is a new field in the Info object, pronouns that lists the pronouns for the current conjugation (yes, they do change, depends on the region)
- available as npm package here
Stable initial 2.2.x
- pre 1999, 1999-2010 and 2010+ orthography rules changes (monosyllable accents)
- new info header entries
- new methods setOrthography(), getOrthography()
- npm published
Latest 1.2.x
- includes only RAE known / used verbs
- removed 2248 unknown / unused verbs
Latest 1.1.x stable
- Stable npm publish with all models functioning
- Regular models change from amar, temer, vivir to hablar, temer, partir in order to have as many 'verb also used as pronominal (reflexive)' models as possible - potential breaking change if you depended on the former
- This is the last version that includes unused / unknown verbs (as per la RAE), NOTE this changed in next release
- 12815 verbs, 99 models
- this is the last 1.1.x npm published stable
Stable initial version
- Initial release with all models functioning
- Uses amar, temer, vivir regular models, NOTE this changed in future releases
- Includes unused / unknown verbs (as per la RAE), NOTE this changed in future releases
- 12815 verbs, 99 models
- this is the last 1.0.x npm stable published package