andalugeeks / andaluh-js

Transliterate español (spanish) spelling to andaluz proposals using javascript
https://andaluh.es
GNU Lesser General Public License v3.0
27 stars 5 forks source link

Bad transliteration of 'es' to 'ê' instead of 'êh' #17

Closed fontanon closed 3 years ago

fontanon commented 3 years ago

The correct transliteration for es (3rd person singular simple present for ser verb) should be êh but it is transliterated to êh.

It is weird because the src/epa.ts::ENDING_RULES_EXCEPTION includes this transliteration exception correctly:

export const ENDING_RULES_EXCEPTION = {
    [...]
    // Other exceptions monosyllables
    'as': 'âh', 'clown': 'claun', 'crack': 'crâh', 'down': 'daun', 'es': 'êh', 
    [...]
}

I've found no reason why this exception rule is not applied :shrug:

Find below an interactive execution as an evidence over the typescript to javascript compilation.

$ node
> const EPA = require('./src/index.js')
> var epa = new EPA.default()
> epa.transcript('Esto es así')
'Êtto ê açí'
fontanon commented 3 years ago

Fixed with 1.1.8

$ node
> const EPA = require('./andaluh/epa.js')
> var epa = new EPA.EPA()
> epa.transcript('Esto es así')
'Êtto êh açí'