An English to English glossary with one line word meanings

105 Views Asked by At

I'm working on a dictionary that gets english words and returns their meanings. My duty is to write a program that reads words and their meanings form a base-input glossary file that is a text file then implements B-Tree Data-Structure for saving datas on hard disk and for future runs, just references to the B-Tree file and resolves given words meanings.

I googled for this but got nothing!

I wrote the BTree DS itself but now I need a text file (or any parsable text format like xml, json etc. ) to complete program. Cause I just can use Java and/or C/C++ and I just need to a glossary file that have many enough word/meaning pair (about 10000 word) please just offer glossary files and pay attention I caen not use any kind of database library so I can't use sql files out there! :(

Also I don't want to use non-free resources or files! ;)

1

There are 1 best solutions below

3
On

Information on downloading dumps of Wiktionary is at: https://en.wiktionary.org/wiki/Help:FAQ#Downloading_Wiktionary

It's free but you should still pay attention to the licensing terms.

The dumps are available as XML.

More generally, in response to your comment about SQL:

  • "Cannot use any kind of database library" sounds like a completely arbitrary restriction. There are many free, light SQL databases you could embed in your application. SQLite is an example.
  • If you really don't want to use SQL in your application, you can still very trivially write a program to extract data from an SQL database and convert it into whatever format your app requires.