Coder Social home page Coder Social logo

Comments (10)

EvilOlaf avatar EvilOlaf commented on May 28, 2024

Quite easy.

match teh
then rewrite the


match \bu\b
then rewrite you

And so on...

from chatcontrol-pro.

MrBaconHawk avatar MrBaconHawk commented on May 28, 2024

Can I do this?

match \bgonna\b

then replace going to

Or is it an issue to do "Going to" with the space there?

from chatcontrol-pro.

EvilOlaf avatar EvilOlaf commented on May 28, 2024

Nope, should work.

from chatcontrol-pro.

MrBaconHawk avatar MrBaconHawk commented on May 28, 2024

I'm going to have to add every single typo there is then manually? That's going to take a million years. Know of any shortcuts or ways to get a better list of typos that can be corrected?

from chatcontrol-pro.

EvilOlaf avatar EvilOlaf commented on May 28, 2024

Due to the design of the plugin you can very precisely define what to detect and what to replace with.
However there is no feature like an auto-correct. This also would not be easy to make because either you would have to send the message to an online service to let it auto-correct, get it pack and send it then to the chat which would lead into delay or including dictionaries in various languages as well as grammar rules. Both would significantly increase server load, plugin size and probably the cost as well because commercial distribution of dictionaries needs to be paid ^^

To cut the long story short: Yes you have to add each typo you want to have automatically fixed as a rule. You can merge similar typos using regex like

match \b(y|wy)\?\b
then rewrite why?

from chatcontrol-pro.

MrBaconHawk avatar MrBaconHawk commented on May 28, 2024

Okay, well thanks anyway.

from chatcontrol-pro.

EvilOlaf avatar EvilOlaf commented on May 28, 2024

You're welcome.

Feel free to contribute to the project by sharing a few of your typo corrections as examples to let others benefit :)

from chatcontrol-pro.

MrBaconHawk avatar MrBaconHawk commented on May 28, 2024

Oh, definitely. I'll see if I can't get my developer to make a system that catches typos by cross-checking them (like you said, but instead, put it in a queue and do it when either nobody is online or CPU usage is low so it causes no troubles) and if it finds errors it makes new rules for them (perhaps I'll make it store the typo so it can be reviewed first before officially added as a rule, since I don't trust computers to do it correctly... lol). Does that sound like it could work to get a good-sized list to share with everyone?

from chatcontrol-pro.

EvilOlaf avatar EvilOlaf commented on May 28, 2024

Sounds quite interesting.
I am no developer of CHC, @kangarko might be interested though ;)

from chatcontrol-pro.

MrBaconHawk avatar MrBaconHawk commented on May 28, 2024

Well if I can't seem to figure it out, I'll ask him if he wants to help. It could make a huge difference in his plugin, and he could do a lot with that.

from chatcontrol-pro.

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.