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

How to make the proofreading tool LanguageTool know new words? #245

Open
be4 opened this issue Feb 3, 2023 · 3 comments
Open

How to make the proofreading tool LanguageTool know new words? #245

be4 opened this issue Feb 3, 2023 · 3 comments
Labels
type: support request A question on how to use YaLafi

Comments

@be4
Copy link

be4 commented Feb 3, 2023

When using YaLafi, "LanguageTool" is called as the proofreading tool.

However, currently it doesn't know words like "ElGamal" and declares them as misspelled.
How can I make these words known to the proofreading tool when entering the call of the YaLafi command.

Please add a minimal working example including the enhanced file en.pdf.

@torik42
Copy link
Owner

torik42 commented Feb 3, 2023

There is no option for that built into YaLafi. I would anyway recommend running LanguageTool locally (see item (1) under LanguageTool in Readme#Installation and LanguageTool documentation). You can then add words to path/to/LanguageTool-5.x/org/languagetool/resource/en/hunspell/spelling_custom.txt.

I haven’t tested, but if you have an account for their web service and use that together with YaLafi (see this issue, but the code is currently not online, nor merged) it might also be possible to add words in their web interface.

@torik42
Copy link
Owner

torik42 commented Feb 3, 2023

You can only ignore full LanguageTool rules currently, but misspellings all have the same rule ID.

@torik42 torik42 added the type: support request A question on how to use YaLafi label Feb 3, 2023
@xuezes
Copy link

xuezes commented Mar 5, 2023

There is no option for that built into YaLafi. I would anyway recommend running LanguageTool locally (see item (1) under LanguageTool in Readme#Installation and LanguageTool documentation). You can then add words to path/to/LanguageTool-5.x/org/languagetool/resource/en/hunspell/spelling_custom.txt.

I haven’t tested, but if you have an account for their web service and use that together with YaLafi (see this issue, but the code is currently not online, nor merged) it might also be possible to add words in their web interface.

Thanks for the solution. It's weird that spelling_custom.txt does not work for me, but changing in the spelling.txt within the same folder does finish the job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: support request A question on how to use YaLafi
Projects
None yet
Development

No branches or pull requests

3 participants