Git Product home page Git Product logo

botmisparim's Introduction

Bot Misparim (Shtei Shekel)

Bot Misparim is a script developed for Hebrew Wikipedia for catching common grammar mistakes related to numbers.

In Hebrew one very common mistake is using the wrong gender (שני ילדות; שתי ילדים).

It isn't easy task to parse a sentence and understand to what word the number in the sentence is related to - this bot does it based on simple regex heuristics* rules. The bot uses hspell project for analyzing words and classify their gender.

* You are welcome to challenge this approach with more advanced NLP/ML approaches (CFG/PCFGs, LSTM/RLU etc) for catching more grammar errors.

Requirements

  • pywikibot - python framework to access wikipedia
  • HspellPy - a python wrapper for hspell

Usage

python misparim.py -xml:XML_DUMP

You can get dump from http://dumps.wikimedia.org/

Advances usage:

python misparim.py -xml:XML_DUMP -fix

Semi-automatic bot for fixing the suspected errors. (use with CAUTION)

Possible fails

The bot is heavily based on heuristics so don't always trust it!

Here are some possible mistakes:

  • שבע may be
    • זקן ושבע ימים
    • שבע מרורים
  • בני תשע + (males)

botmisparim's People

Contributors

eranroz avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.