Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support non-US English #113

Open
ccjmne opened this issue Aug 18, 2024 · 2 comments
Open

Support non-US English #113

ccjmne opened this issue Aug 18, 2024 · 2 comments

Comments

@ccjmne
Copy link

ccjmne commented Aug 18, 2024

Hey! 👋

Thanks for this excellent tool!

I'd like to request a way to switch "language flavour", without implementing my dictionaries myself.

I understand that committing to maintaining the built-in dictionaries in one language is already pretty great, and the purpose of this tool was always to be an "English grammar checker", that's its scope and it's very respectable! I have no intention of even suggesting any different!

However, I wish it would allow me to type colour the way most of the English-speaking world (all but the US) would.
As far as I can tell, the main difference in the grammar (so, not talking about pronunciation, idioms, culture... 😉) between the different English "flavours" lies in the spelling of a few patterns (ou/o, ise/ize, ogue/og...).

Some words are outright different (trousers/pants, university/college), but these are a lot more local than they are global: I'm fairly certain the Singaporeans, New Zealanders, Indians and other English-speaking communities have their own specific overrides and additions there, and I do not suppose that this should be something Harper's built-in dictionaries would need to look into!

To get back to the original topic, I also sorta wish it'd suggest to me:

Hey, you spelt subsidized here whereas you probably meant subsidised

So my ideal wouldn't be a mere addition to the default dictionary, but some substitution. I mean, effectively a substitution, I do not know how the solution would work in practice. Is it realistically possible to compute the differences between the two spellings with a set of rules?

I'd like to help if there's anything that can be done! 😄
Alternatively, how would I proceed? I could also just add the differently-spelt variants to my personal dictionaries as I encounter them.

Thanks in advance, and thanks again for Harper!

@elijah-potter
Copy link
Owner

You're in luck! I've been working on significantly enhancing how Harper's dictionary works under the hood. I reckon I can just add flags to different variations of words, as well as an option to set your locale. That way we can continue using the same dictionary, just modifying it to include a bit more information about what version of English each word should be used in.

I'll update here once I've got something working.

@anarcat
Copy link

anarcat commented Sep 18, 2024

I speak french too: are there plans to support entirely different dictionaries and languages here? How about conjugation and grammar? Should I file another issue for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants