All Projects → reZach → grammarify

reZach / grammarify

Licence: MIT license
Grammarify is a npm package that safely cleans up text that has mispellings, improper capitalization, lexical illusions, among other things.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to grammarify

SymSpellCppPy
Fast SymSpell written in c++ and exposes to python via pybind11
Stars: ✭ 28 (-34.88%)
Mutual labels:  spelling-correction
spell
Spelling correction and string segmentation written in Go
Stars: ✭ 24 (-44.19%)
Mutual labels:  spelling-correction
LinSpell
Fast approximate strings search & spelling correction
Stars: ✭ 52 (+20.93%)
Mutual labels:  spelling-correction
Symspell
SymSpell: 1 million times faster spelling correction & fuzzy search through Symmetric Delete spelling correction algorithm
Stars: ✭ 1,976 (+4495.35%)
Mutual labels:  spelling-correction
sheldon
Very Simple Erlang Spell Checker
Stars: ✭ 63 (+46.51%)
Mutual labels:  spelling-correction
ocr-machine-learning
OCR Machine Learning in python
Stars: ✭ 42 (-2.33%)
Mutual labels:  spelling-correction
ka GE.spell
ქართული ორთოგრაფიული ლექსიკონი - Georgian Spell Checking Dictionary
Stars: ✭ 24 (-44.19%)
Mutual labels:  spelling-correction
extractnet
A Dragnet that also extract author, headline, date, keywords from context
Stars: ✭ 52 (+20.93%)
Mutual labels:  text-cleaning
trafilatura
Python & command-line tool to gather text on the Web: web crawling/scraping, extraction of text, metadata, comments
Stars: ✭ 711 (+1553.49%)
Mutual labels:  text-cleaning
spellchecker-wasm
SpellcheckerWasm is an extrememly fast spellchecker for WebAssembly based on SymSpell
Stars: ✭ 46 (+6.98%)
Mutual labels:  spelling-correction
Did you mean
The gem that has been saving people from typos since 2014
Stars: ✭ 1,786 (+4053.49%)
Mutual labels:  spelling-correction
Semantic-Textual-Similarity
Natural Language Processing using NLTK and Spacy
Stars: ✭ 30 (-30.23%)
Mutual labels:  spelling-correction
WordSegmentationDP
Word Segmentation with Dynamic Programming
Stars: ✭ 18 (-58.14%)
Mutual labels:  spelling-correction
CorrectLy
CorrectLy - Open Source Spelling & Grammar correction
Stars: ✭ 23 (-46.51%)
Mutual labels:  spelling-correction
checkyoself
Markdown Grammar Checker for blog posts, etc.
Stars: ✭ 38 (-11.63%)
Mutual labels:  grammar-checker
customized-symspell
Java port of SymSpell: 1 million times faster through Symmetric Delete spelling correction algorithm
Stars: ✭ 51 (+18.6%)
Mutual labels:  spelling-correction
neuspell
NeuSpell: A Neural Spelling Correction Toolkit
Stars: ✭ 524 (+1118.6%)
Mutual labels:  spelling-correction
spacy hunspell
✏️ Hunspell extension for spaCy 2.0.
Stars: ✭ 94 (+118.6%)
Mutual labels:  spelling-correction
text-preprocess-python
Text preprocessing tools in python.
Stars: ✭ 22 (-48.84%)
Mutual labels:  text-cleaning
deep-spell-checkr
Keras implementation of character-level sequence-to-sequence learning for spelling correction
Stars: ✭ 65 (+51.16%)
Mutual labels:  spelling-correction

Grammarify is a npm package that safely cleans up text that has mispellings, improper capitalization, lexical illusions, among other things.

How to use

var grammarify = require("grammarify");

var sentence = "im so   borrreeedddd";
console.log(grammarify.clean(sentence)); // "I'm so bored."

Features

Automatically add periods at the end of sentences
"I am a sentence" -> "I am a sentence."
Remove "safe" lexical illusions

(Some words are grammatically correct if repeated twice, words that are not are removed if duplicated)

"The the pig snorted." -> "The pig snorted."
Spellcheck words
"I was mad becuase I left home early." -> "I was mad because I left home early."
Capitalize words at the beginning of sentences
"I like to run. he runs faster than I." -> "I like to run. He runs faster than I."
Change SMS/shorthand to full words
"Meet me at home asap." -> "Meet me at home as soon as possible."
Shrink stretched words
"I'm so borreedddd." -> "I'm so bored." 
Combine separated words
"Yesterday and to day we flew kites." -> "Yesterday and today we flew kites."
Split up sentences if connected
"Writing C# code is fun.It is much better than Java." -> "Writing C# code is fun. It is much better than Java."
Fix intended ellipsis

(Intended ellipsis are any two or more periods separated by any number of periods and/or spaces)

"I was thinking yesterday..that I should go outside." -> "I was thinking yesterday... that I should go outside." 
Add spaces between comma/semicolon/colon-separated words
"She likes to eat,cook,clean and dance!" -> "She likes to eat, cook, clean and dance!"
Fix extra spaces in between words
"Wow  what an  extra long coat!" -> "Wow what an extra long coat!"
Fix duplicate punctuation
" what a daay. i must have had 1,,000 shots" -> "What a day. I must have had 1,000 shots."

Bugs or suggestions?

Go to our Github page.

Our NPM package

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].