Git Product home page Git Product logo

spellchecker's Introduction

Spellchecker

highlights mistakes in texts and corrects them.

Getting Started

you'll have to download the program from here and have spellchecking mood (optional).

Requirements

  • tqdm (installing by pip)

Usage

Launch

  • use --help or -h for help.
  • use --input or -in for choosing file to be corrected (make sure that it is located in the directory where the spellchecker is). if you don't wanna use this option you can write the text on your own below in enter your text: line (optional).
  • use --output or -out for choosing the name of file where you'd like to be written the corrected text for you. you are able to not use this option and to get the wonderful corrected text below, on the console (optional).
  • use --lang or -l for choosing language or creating dictionary from your text.
    • eng(for choosing English)
    • rus(for choosing Russian)
    • (test_eng and test_rus are for developers)
  • use --created for choosing your file for creating new dictionary.
  • done! message says that chellcheck is correctly complited, im truly happy if you saw it :)

!warning! try to not leave the field --lang or --create empty. that is the only way, program can check you words.

Examples

python main.py --input file_name.txt --output file_name.txt --lang eng
python main.py --input file_name.txt --lang eng
python main.py --output file_name.txt --create file_name.txt
python main.py --lang eng
python main.py --create file_name.txt

Modules

  • main.py launching
  • spellcheck.py spellchecking
  • trie_distance.py algorithm of Levenshtein Distance + bor trie
  • dict_loader.py loading dictionary
  • dict_creator.py creating dictionary
  • test_spellchecker.py testing program

Future versions

  • parsing arguments with sys.stdin

Authors

spellchecker's People

Contributors

xxeniaev avatar ipolotsky avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

senarii

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.