Giter VIP home page Giter VIP logo

agramat's Introduction

Agramat

A Discord bot that corrects common Romanian spelling mistakes

Add to Discord

Its goal is not to be a spellchecker, but to fix genuine common ortography errors that aren't mistypes.

To make changes to the code, see CONTRIBUTING.md.

Demo image

Demo image of the "conjugare" command

agramat's People

Contributors

edward205 avatar tacheometry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

agramat's Issues

Preferințe de notificare a corecturilor

Printr-o comandă, utilizatorii ar putea configura cum doresc să fie notificați de robot atunci când este detectată o greșeală:

  • deloc
  • în mesaje private
  • în canalul în care a fost scris mesajul (implicit)

Regex in wrong form does not seem to work properly

For wrong_forms which use regex features, like the following entry: v-?a fii,va fi, neither of va fii and v-a fii gets corrected.

If running the generated regex (ALL_CORRECTIONS_REGEX) from correctionData.ts in a regex tester like RegExr, both va fii and v-a fii get detected, so the issue seems to be somewhere else...

Urmărirea unor statistici legate de corecturi

Ar fi interesant să fie stocate niște statistici, cum ar fi cele mai corectate secvențe, procentajul mesajelor corectate după fiecare server, etc. Desigur, acestea vor trebui anonimizate.

Comandă de definiție

Singura soluție pe care o văd este să facem scrape la pagina de sinteză dexonline. În prezent, nu exista un API pentru acea secțiune a paginii.

Șterge din cache după câtva timp

În prezent, informațiile despre corecturi sunt stocate în cache, iar acest lucru ajută la utilizarea mai puținor resurse atunci când o frază este repetată (spamată) de utilizatori, dar de multe ori un mesaj va fi unic.

De ce nu răspunde?

Acum ceva timp răspundea doar câteodată. Azi am scris nația mă-tii, nu a corectat în națiunea. Au scris 10 prieteni vroiam pe un server, nimic de la agramat. Unde suntem aici, în junglă?

Ordonarea regulilor în grupe

Regulile stocate actual în PhraseCorrections.csv ar putea fi grupate după tipul său de corectare.

Niște exemple a unor grupe posibile:

  • Conjugare (felul în care verbele își schimbă forma):
    • absolv -> absolvesc, împătur -> împăturesc, îndrumează -> îndrumă
  • Contracții (scurtări):
    • iam -> i-am, așai -> așa-i, lam -> l-am
  • Ortografie (scriere):
    • alcol -> alcool, aghiazmă -> agheasmă, ideie -> idee
  • Sufixuri (capăturile; terminațiile cuvintelor):
    • aeropoarte -> aeroporturi, algoritmuri -> algoritmi/e

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.