Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 8 of 8

Thread: Algorithm for building an dynamic dictionary and auto spell corrector?

  1. #1
    Member
    Join Date
    Dec 2013
    Posts
    32
    My Mood
    Confused
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Algorithm for building an dynamic dictionary and auto spell corrector?

    Hi,everyone i am in need of making an java application which is capable of reading the text files and build an dictionary of words based on the frequency of words present in those files such that if an user types an wrong spelling my code needs to correct it or print the correct spelling??
    can any one help me for doing this please!!


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Algorithm for building an dynamic dictionary and auto spell corrector?

    Is this a GUI that will discover errors and offer suggested corrections as the user types, or is it more of a spell check function called from the command line that is performed on a text file that has already been saved to disk?

  3. #3
    Member
    Join Date
    Dec 2013
    Posts
    32
    My Mood
    Confused
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Algorithm for building an dynamic dictionary and auto spell corrector?

    Quote Originally Posted by GregBrannon View Post
    Is this a GUI that will discover errors and offer suggested corrections as the user types, or is it more of a spell check function called from the command line that is performed on a text file that has already been saved to disk?
    This is just an console based application which is going to read the files from the disk(path will be specified by the user) and build an dictionary and it will correct the spelling if the user types an misspelled word

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,145
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Algorithm for building an dynamic dictionary and auto spell corrector?

    A starting point might be: given a misspelled word, detect it and find the correctly spelled word.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Member
    Join Date
    Dec 2013
    Posts
    32
    My Mood
    Confused
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Algorithm for building an dynamic dictionary and auto spell corrector?

    Quote Originally Posted by Norm View Post
    A starting point might be: given a misspelled word, detect it and find the correctly spelled word.
    thanks for the suggestion but i am searching for the code/method(algorithm) to implement this

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,145
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Algorithm for building an dynamic dictionary and auto spell corrector?

    I have no idea other than using a Search engine and see what is out there.
    If you don't understand my answer, don't ignore it, ask a question.

  7. #7
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Algorithm for building an dynamic dictionary and auto spell corrector?

    Here's an interesting article, but I'm sure you can find others.

  8. #8
    Member
    Join Date
    Dec 2013
    Posts
    32
    My Mood
    Confused
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Algorithm for building an dynamic dictionary and auto spell corrector?

    Quote Originally Posted by GregBrannon View Post
    Here's an interesting article, but I'm sure you can find others.
    i have found that using BK-tree algorithm will be efficient way i am going through it

Similar Threads

  1. Spell Check Ms Word style
    By Chander in forum Totally Off Topic
    Replies: 1
    Last Post: December 6th, 2012, 04:11 AM
  2. how to add Spell checker
    By hope2012 in forum Java Theory & Questions
    Replies: 1
    Last Post: November 8th, 2012, 08:23 AM
  3. Spell checker using bags
    By kovynjd2010 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 16th, 2012, 12:09 PM
  4. SMS Textspeak Corrector
    By SHENGTON in forum Java ME (Mobile Edition)
    Replies: 4
    Last Post: January 17th, 2011, 06:58 AM
  5. Auto contrast and auto brightness
    By oxxxis in forum Java Theory & Questions
    Replies: 0
    Last Post: January 21st, 2010, 03:00 PM