Hugo0 / wordle

Open Source Wordle in a bunch of languages
Other
47 stars 26 forks source link

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

Closed johnbent closed 1 week ago

johnbent commented 1 year ago

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 commented 1 year ago

image

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

johnbent commented 1 year ago

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 commented 1 year ago

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.