Git Product home page Git Product logo

java-spellchecker-casing-duplication's Introduction

Java SpellCheck for bad casing and invalid character duplication

PURPOSE OF PROJECT: Correct the spelling errors such as bad casing and invalid character duplication.

Correct words such as _'appPPplllLleeeeE' to 'apple', 'Millk' to 'milk'

VERSION or DATE: 03/16/2019

AUTHORS: Iryna Sherepot

USER INSTRUCTIONS: To use a spellCheck function, please create a new object SpellChecker passing the dictionary file you would like to check words against.

After dictionary was created, you can spell check word by calling the SpellChecker instance method checkWord(String wordToCheck)

The checkWord() function will perform two types of corrections on the incoming word and then return the corrected word: It fixes bad casing: “england” → “England”

It removes invalid repeating characters: “tabble” → “table”

  • If the incoming word is already correct, the function returns the original word. *
  • If no correction can be found, the function returns the string “No Correction Found”. *

Tests are provided is the SpellTest.java.

The project assumes the following:

  • any number of character duplication can be made
  • duplication can occur more than once,
  • bad casing can occur more than one time in the word at any letter,
  • word can have both casing and duplication errors at the same time
  • If the two possible correct spellings of the word is possible, the function picks first one.

java-spellchecker-casing-duplication's People

Contributors

isherep avatar

Watchers

 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.