Dictionary structure in java

poulpe -  
 HackTrack -
The story goes that I know the properties structure but I'm not sure if it's the best way to implement a dictionary in Java, especially since I want to have the ability to search for definitions in two ways, namely by word or by the root of a word. However, with properties, we only have one type of key.
So what to do?

3 réponses

ariock Posted messages 125 Status Membre 5
 
Well, if you don't want to overthink it:
- a properties file with words and definitions
- a properties file with roots + pointer to the words... (or the word)...

Alright, at a quick pace 0, but for not putting in too much effort, it's not bad...

I'm a contrary lefty. It's stronger than me,
I have to annoy right-handers.
0
nanana
 
But left-handed people have issues with repressed violent and uncontrollable personality... I might be wrong? Who knows?
0
ariock Posted messages 125 Status Membre 5
 
Well, actually no, there's no repressed personality, just a little split sometimes, but I correct it all with the other hand and everything gets back to normal pretty quickly, hide doesn't come out often, except on full moon nights when he is really uncontrollable.

I'm a contrary lefty. It's stronger than me,
I have to annoy right-handed people.
-1
HackTrack
 
Why don't you use a database instead?
This would allow you to evolve your dictionary(ies) later by adding features to them.

Thanks to SQL, you could perform a search on a word, on a synonym, on a word that contains a string of characters you specify (keyword LIKE),...

;-)
HackTrack
0