Git Product home page Git Product logo

Comments (5)

tbroadley avatar tbroadley commented on September 13, 2024 1

I understand, don't worry about it! 🙂

from spellchecker-cli.

tbroadley avatar tbroadley commented on September 13, 2024

Hi there! Thanks for the issue. Dictionaries are case-sensitive - that's why your lowercase dictionary entry isn't matching the capitalized word in the file being spellchecked. I think this behaviour makes sense - it allows the program to detect mis-capitalizations of words in the dictionary, but also allows users to ignore different capitalizations by including them in the dictionary.

To fix this, I'd suggest adding the capitalized version of the word to the dictionary. Let me know if that helps 🙂

from spellchecker-cli.

titieo avatar titieo commented on September 13, 2024

Hi, thanks for your suggestion, as far as I can check, most of the errors occurred when I run the spellcheck are issues with "capitalized word". I have tried to add that in my personal dictionary and it's fixed. Thanks for your help. 🙂
There is only a problem with repeated word
As you see here, some languages have some phrase words. In my case, for example, the phrase word is song song (Vietnamese) which mean parallel (English) but the retext-repeated-words recognize it as 2 separate words instead of a phrase word only which lead to the error shown below, I've tried to add this in the dictionary but didn't help
image

from spellchecker-cli.

tbroadley avatar tbroadley commented on September 13, 2024

I'm glad that was helpful! And thanks for bringing up this other issue. As far as I can tell, retext-repeated-words isn't powerful enough to recognize phrase words from non-English languages. I think it's only intended to be run on English text, unfortunately. I think the best option would be to disable that plugin.

Also I just found that retext-spell can integrate with this Vietnamese dictionary. I'd accept a PR to add support for that dictionary to spellchecker-cli. I think that'd be as simple as adding dictionary-vi as a dependency, adding a couple of tests, and documenting the change.

from spellchecker-cli.

titieo avatar titieo commented on September 13, 2024

Also I just found that retext-spell can integrate with this Vietnamese dictionary. I'd accept a PR to add support for that dictionary to spellchecker-cli. I think that'd be as simple as adding dictionary-vi as a dependency, adding a couple of tests, and documenting the change.

Sorry that I don't have much knowledge about coding (information technology) just enough skill to create a vuepress site follow their site so I don't know how to add support for vietnamese dictionary to spellchecker-cli, I've tried to read the index.js here as well as reading about the retext-spell's API section but haven't found out the way add another language. I'm really sorry for this

from spellchecker-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.