Implementing a English-Spanish/Spanish-English Dictionary

This is a discussion on Implementing a English-Spanish/Spanish-English Dictionary within the C Programming forums, part of the General Programming Boards category; Hey everyone. I'm new to C, and I'm actually programming for the PSP. I just wanted to know if it ...

  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    2

    Implementing a English-Spanish/Spanish-English Dictionary

    Hey everyone. I'm new to C, and I'm actually programming for the PSP. I just wanted to know if it would be hard to create a dictionary (both English-Spanish and Spanish-English).

    I obviously can't type in all of the words in the dictionary- there must be some sort of database somewhere. How would I go about doing such a thing, and would it be too much for a beginner? I have a good idea of programming theory (I have been working with the scripting language lua for over a year), but I am pretty new to C.

    Thanks for any help.

  2. #2
    Chinese pâté foxman's Avatar
    Join Date
    Jul 2007
    Location
    Canada
    Posts
    404
    I just wanted to know if it would be hard to create a dictionary (both English-Spanish and Spanish-English).
    It wouldn't be hard to create a working dictionary. It sure will be a bit harder to create an efficient one. But, in overall, the dictionary principle isn't complex; you give it a word, it gives you the different translation for that word (in its simplest form).

    there must be some sort of database somewhere
    It exists, somewhere, but i doubt you can find anything really complete. Google is your friend. Or is it ?

    How would I go about doing such a thing, and would it be too much for a beginner?
    Well it might be a bit hard for a beginner to create an efficient "dictionary". Having some knowledge about data structure will sure help. So if you have some, you might want to give it a try, else, you might want to do it either.

    I suggest you implement it with some kind of trees.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    There are numerous wordlists available on the net in English. I found several by googling and following the links. Be aware that British English is much different than it's American version.


    One simple way to use it would be keep the word list file in alphabetical order, and then do a slightly modified binary search through that, for the target word.

    Are you thinking of supplying each word's definitions, or just the words equivalent word in the second language?

  4. #4
    Registered User
    Join Date
    Feb 2008
    Posts
    2
    Ok, thanks, foxman.

    Adak:

    I was thinking, at the moment, for it just to translate. So just the word's equivalent.

  5. #5
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,045
    Do some searching. Quite a few translators seem to be based on the Erlang database: http://download.travlang.com/
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. memory footprint of Dictionary
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 05-17-2008, 08:39 AM
  2. I'm not THAT good am I?
    By indigo0086 in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 10-19-2006, 10:08 AM
  3. spell check in C using a dictionary file
    By goron350 in forum C Programming
    Replies: 10
    Last Post: 11-25-2004, 05:44 PM
  4. English to American Dictionary (Funny)
    By stevey in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 05-07-2002, 09:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21