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 3 of 3

Thread: need details on Implementing Dictionary Filters for English words

  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post need details on Implementing Dictionary Filters for English words

    I am working on a prj where I would have to read the texts written by a user and check each and every given word against a dictionary(a list of words and their combination) and filter the words.

    one thing i came across is to have a file with list of words and then do a recursive comparison.
    what i am thinking is like, would there be an existing api with which i can just pass the words and get the details.

    any idea?


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: need details on Implementing Dictionary Filters for English words

    See the HashMap or TreeMap collections. These are used for mapping a key (the word) to a value (the definition).

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,296
    Thanks
    180
    Thanked 824 Times in 767 Posts
    Blog Entries
    5

    Default Re: need details on Implementing Dictionary Filters for English words

    Another alternative would be to use a relational database. Index the words appropriately and a single query can be used to pull out what you need (in this manner you can associate lots of other information along with the words - definitions, pronunciation, use in sentences, noun/verb/adj, etc..) . I'd consider this a fairly advanced way to go about it, but if you are looking for a fun challenge it might be something to look into

Similar Threads

  1. [SOLVED] implementing a dictionary of words using an array of linked lists
    By McTown in forum Java Theory & Questions
    Replies: 3
    Last Post: April 27th, 2011, 02:19 PM
  2. Java Tip Aug 4, 2010 - How to use File Filters
    By helloworld922 in forum Java Programming Tutorials
    Replies: 0
    Last Post: August 4th, 2010, 05:08 PM
  3. How to extract a particular element details which has more references ???
    By j_kathiresan in forum Algorithms & Recursion
    Replies: 1
    Last Post: December 31st, 2009, 12:11 AM
  4. Translate Java Code Into English
    By drkossa in forum Java Theory & Questions
    Replies: 4
    Last Post: November 27th, 2009, 01:52 PM