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

Bug when transcribing words starting with 'h' followed by a vowel with an accent mark #30

Open xexuu opened 1 year ago

xexuu commented 1 year ago

When transcribing words that start with "h" followed by a vowel with an accent mark, such as "hábito", the tool incorrectly transcribes it as "hábito" instead of the correct transcription "ábito" in Andalusian. This bug results in incorrect transcription outputs.

Steps to Reproduce:

  1. Go to the tool's website or open the tool (https://andaluh.es/transcriptor/)
  2. Enter the word "hábito" in the Spanish input field.
  3. The output will be "hábito", instead of "ábito" which is the correct transcription in Andalusian.

Expected behavior: The tool should correctly transcribe words starting with "h" followed by a vowel with an accent mark to Andalusian, by omitting the letter "h" and keeping the accent mark, resulting in the correct transcription.

Actual behavior: The tool does not correctly transcribe words starting with "h" followed by a vowel with an accent mark, resulting in an incorrect transcription.

Impact: This bug affects the accuracy of the tool's transcription output for users who require a correct Andalusian transcription.

Proposed solution: The tool's algorithm should be updated to recognize words starting with "h" followed by a vowel with an accent mark, and correctly transcribe them to Andalusian by omitting the "h" sound and keeping the accent mark.

Additional information: This bug has been observed in https://andaluh.es/transcriptor/ on both desktop and mobile devices.