Dictionary Database Design

Reply

Join Date: Feb 2009
Posts: 2
Reputation: piqoni is an unknown quantity at this point 
Solved Threads: 0
piqoni piqoni is offline Offline
Newbie Poster

Dictionary Database Design

 
0
  #1
Feb 19th, 2009
Hello everyone!

if someone knows any source code (PHP or whatever) for creating an online dictionary, I would appreciate a lot if he would share it with me.

But this is Database Design section right? so,
I want to create an online dictionary service, and lets say I have two files, one for the words in a specific language and the other file for the other language that will be translated. The Files are sorted in the same way (so the line number corresponds to its translation)

lets say
table1 table2
1. America 1.Amerika
2. Whatever 2. (the translation of whatever)
etc etc

you got the idea, but my question is, what about the synonyms, I mean should I create another table? because a word may have many synonyms and they should appear on the translation right?

can anyone help me saying sth about the way the "modern" dictionaries work?

thnx in advance
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 818
Reputation: pritaeas is on a distinguished road 
Solved Threads: 133
Sponsor
pritaeas's Avatar
pritaeas pritaeas is offline Offline
Practically a Posting Shark

Re: Dictionary Database Design

 
0
  #2
Feb 20th, 2009
My guess is that they rely heavily on link tables. Suppose you have a dutch and american dictionary, they wouldnt be linked by using the same id (as you stated). Instead it would use a third table that links two words (in different languages) together. For synonyms, you can do the same, only this would be a table that links two id's together for the same language.
"If it is NOT source, it is NOT software."
-- NASA
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 2
Reputation: piqoni is an unknown quantity at this point 
Solved Threads: 0
piqoni piqoni is offline Offline
Newbie Poster

Dictionary Database Design

 
0
  #3
Feb 20th, 2009
Thnx for replying but still, Im confused how the linke table would be.

The truth is, I have two files of words in two different languages from a dictionary software. I checked carefully the software folder and I found also this file called link.lk
Do you have any idea with what can I open this file cause I doubt, it is NOT encrypted (since the files with the words were not). I tried with notepad but nothing.

Can someone help me?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Database Design Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC