Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 665053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:40:04+00:00 2026-05-13T23:40:04+00:00

is there a dictionary i can download for java? i want to have a

  • 0

is there a dictionary i can download for java?
i want to have a program that takes a few random letters and sees if they can be rearanged into a real word by checking them against the dictionary

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:40:04+00:00Added an answer on May 13, 2026 at 11:40 pm

    Is there a dictionary i can download
    for java?

    Others have already answered this… Maybe you weren’t simply talking about a dictionary file but about a spellchecker?

    I want to have a program that takes a
    few random letters and sees if they
    can be rearranged into a real word by
    checking them against the dictionary

    That is different. How fast do you want this to be? How many words in the dictionary and how many words, up to which length, do you want to check?

    In case you want a spellchecker (which is not entirely clear from your question), Jazzy is a spellchecker for Java that has links to a lot of dictionaries. It’s not bad but the various implementation are horribly inefficient (it’s ok for small dictionaries, but it’s an amazing waste when you have several hundred thousands of words).

    Now if you just want to solve the specific problem you describe, you can:

    • parse the dictionary file and create a map : (letters in sorted order, set of matching words)

    • then for any number of random letters: sort them, see if you have an entry in the map (if you do the entry’s value contains all the words that you can do with these letters).

      abracadabra : (aaaaabbcdrr, (abracadabra))

      carthorse : (acehorrst, (carthorse) )

      orchestra : (acehorrst, (carthorse,orchestra) )

    etc…

    Now you take, say, three random letters and get “hsotrerca”, you sort them to get “acehorrst” and using that as a key you get all the (valid) anagrams…

    This works because what you described is a special (easy) case: all you need is sort your letters and then use an O(1) map lookup.

    To come with more complicated spell checkings, where there may be errors, then you need something to come up with “candidates” (words that may be correct but mispelled) [like, say, using the soundex, metaphone or double metaphone algos] and then use things like the Levenhstein Edit-distance algorithm to check candidates versus known good words (or the much more complicated tree made of Levenhstein Edit-distance that Google use for its “find as you type”):

    http://en.wikipedia.org/wiki/Levenshtein_distance

    As a funny sidenote, optimized dictionary representation can store hundreds and even millions of words in less than 10 bit per word (yup, you’ve read correctly: less than 10 bits per word) and yet allow very fast lookup.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way that I can insert values into a VB.NET Dictionary when
O have an NSDictionary. Inside the dictionary there is an array. I want to
Is there any way that one can encapsulate Dictionary to be a new type
is there any way to store duplicate keys in a dictionary? I have a
There are several places on the internet that talk about having multy key dictionary
I'm having difficulty with a dictionary that I want to compare an updated version
I can add a float to my dictionary and that works well: [NSNumber numberWithFloat:[self.longitude
Is there some simple method that can check if an input object to some
I have a Windows service that continuously performs calculation tasks. There are multiple calculation
I have a console application with a few methods that: insert data1 (customers) from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.