wordle icon indicating copy to clipboard operation
wordle copied to clipboard

'Double letters' don't work for PAU language.

Open johnbent opened this issue 2 years ago • 3 comments

Hello,

I created a 'pau' folder for Palauan here: https://github.com/tekinged/wordle. It was super easy to get it (mostly) working. Thank you so much for this awesome project! Really great stuff.

One small problem I'm having however is that Palauan uses the Latin alphabet and has two sounds which are represented by two letters: 'ng' and 'ch'. I entered them as single entries into the pau_characters.txt and pau_keyboard.txt. They show up correctly in the virtual keyboard but they do not work when I click on them.

I could always just consider 'n' and 'g' and 'c' and 'h' to be separate characters but that's not really accurate as far as the language goes I think.

Also, this does mean that some of the entries in pau_5words.txt do have more than 5 'letters' in them.

Is it possible to fix this? Any other suggestions about work-arounds?

Thanks so much for this awesome project.

Edit: removed the query about hosting because I see that it will be hosted at https://www.wordle.global/pau once a PR is approved. SO AWESOME!

johnbent avatar Feb 24 '23 00:02 johnbent

image

I got lucky when I tested and it used a word without 'ng' or 'ch'. :)

johnbent avatar Feb 24 '23 16:02 johnbent

I looked at the code some and see that all words with 'ng' or 'ch' in them will NOT be used because the code does a filter on length(word) == 5. So, this might not be an easy fix.

johnbent avatar Feb 24 '23 17:02 johnbent

Note that I switched the pau files to consider these as separate letters and submitted #44 to get Palauan added. I would still like to fix this and switch back to treating them as combined letters but at least hopefully we can get something up and running and then incrementally improve it.

johnbent avatar Feb 24 '23 21:02 johnbent