![]() |
|
Full Dictionary (CSV format) - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: Official Links (https://qb64phoenix.com/forum/forumdisplay.php?fid=16) +--- Forum: Learning Resources and Archives (https://qb64phoenix.com/forum/forumdisplay.php?fid=13) +--- Thread: Full Dictionary (CSV format) (/showthread.php?tid=3648) |
Full Dictionary (CSV format) - SMcNeill - 04-29-2025 Old file: (Not suggested to use)
english_dictionary.txt (Size: 14.26 MB / Downloads: 166)
New file: (See details in edit below)
Dict(CSV).txt (Size: 14.89 MB / Downloads: 361)
The above is a nice resource which I found that I thought I'd share for our various folks who are into word games and such. Quote:,word,wtype,meaning As you can see from the above, this is a WHOLE dictionary and not just a word list. It's in CSV format (Comma Separated Value), so can be easily read and parsed just by using INPUT if one desires. Information here is: ### <-- the number of the defintion $$$$ <-- the word itself $$$$ <-- the word type (preposition, noun, adjective, adverb, ect) $$$$$$$$$$ <-- the word definition Note that there may be multiple instances for the same word, if it has more than one definition. (Such as the word "a" above has 7 entries.) I thought Phil, bplus, or Dav might be interested in this as they're always making and using word games. Now, they can not only list the word but also the definition of a word for their games, if they want to. ![]() EDIT AND UPDATE As mentioned elsewhere in this thread, I decided to go back to the original and redo this work for us. Here is what the new file looks like: Quote:"A ",""," The first letter of the English and of many other alphabets. The capital A of the alphabets of Middle and Western Europe, as also the small letter (a), besides the forms in Italic, black letter, etc., are all descended from the old Latin A, which was borrowed from the Greek Alpha, of the same form; and this was made from the first letter (/) of the Phoenician alphabet, the equivalent of the Hebrew Aleph, and itself from the Egyptian origin. The Aleph was a consonant letter, with a guttural breath sound that was not an element of Greek articulation; and the Greeks took it to represent their vowel Alpha with the a sound, the Phoenician alphabet having no vowel symbols." A few quick points of difference: 1) This is ALL quote separated text. That means it reads really easily with an INPUT statement, without any need for parsing to take place. 2) This is just word-type-definition. 3) Since I've translated this to be all inside quotes for ease of input, if you look close, you'll see where there were old quotes in some of these entries. Those would screw up INPUT so I replaced them all from " to '' (double '). When reading these, if you don't like that, just replace them back out to quotes afterwards. (Note that I have a nice String.Replace which does that job quickly and easily for us...) And, the new file:
Dict(CSV).txt (Size: 14.89 MB / Downloads: 361)
RE: Full Dictionary (CSV format) - tantalus - 04-29-2025 Given the subject matter of words and their meanings, surely the title should read "Adequate dictionary (CSV format)"
RE: Full Dictionary (CSV format) - PhilOfPerth - 04-29-2025 (04-29-2025, 05:41 PM)SMcNeill Wrote: The above is a nice resource which I found that I thought I'd share for our various folks who are into word games and such. A great find Steve! I've been trying to create something like this for a while, but never happy with my result. I started with the free on-line dictionary, split into 2 linked lists, Word and Meaning, then used Word to remove sections for Meaning that related to etymology etc. Because, for all of my games all I want is these two sections, this would be adequate. But multiple meanings were a bit challenging, as in how to present them. If this is a free download,I'll experiment with it, and look at adding meanings to some of the games. Thanks for the post!
RE: Full Dictionary (CSV format) - SMcNeill - 04-30-2025 (04-29-2025, 10:35 PM)PhilOfPerth Wrote: A great find Steve! It's free and from what I can tell doesn't even require any license or attribution. It was based off this work, which was based off Project Gutenberg: https://www.mso.anu.edu.au/~ralph/OPTED/ If you don't mind doing a little parsing yourself, you might prefer to grab the versions from here instead. They have more of the definition without certain things being truncated off. The only problem is they aren't CSV and you'd have to parse the words yourself. Word before ( Type between ( ) Definition after ) I may take a shot at converting the original over for us sometime later. Knowing there's more to it out there just bugs me as a digital packrat, thinking I'm leaving information sitting on the wayside. LOL! RE: Full Dictionary (CSV format) - SMcNeill - 04-30-2025 New prettier and fancier CSV file for download at the first post. Go see if it's a little better than the previous version was.
RE: Full Dictionary (CSV format) - PhilOfPerth - 04-30-2025 (04-30-2025, 12:45 AM)SMcNeill Wrote:(04-29-2025, 10:35 PM)PhilOfPerth Wrote: A great find Steve! Thanks Steve. Word before ( Type between ( ) Definition after ) This is pretty well what I've been doing; looks like it will work, once I work out the presentation for the Meanings. I will also be removing a few "unpalatable" words, to make it suitable for Family usage. BTW did you know they've now officially removed the word "gullible" from the dictionary? RE: Full Dictionary (CSV format) - SMcNeill - 04-30-2025 @PhilOfPerth Take a look at the first post once again. It may be easier for you to work with. All you need is a simple INPUT to read it from file and no parsing or anything else is necessary. RE: Full Dictionary (CSV format) - PhilOfPerth - 04-30-2025 (04-30-2025, 01:41 AM)SMcNeill Wrote: @PhilOfPerth Take a look at the first post once again. It may be easier for you to work with. All you need is a simple INPUT to read it from file and no parsing or anything else is necessary. Nice, but a bit verbose for my needs - the word "a" for eaxample, takes about 2000 characters to explain its meanings. I think I'll need to cut it down to 1, maybe 2 meanings per word, and maybe find a way to shorten these further. An interesting exercise; hope I have time to complete it.
|