In Amazon Kindle Could You Copy And Paste?

Gizmo j

Senior member
Nov 9, 2013
892
247
116
If I buy something from Amazon Kindle, could I copy and paste sections in the document?

The reason I'm asking is because I'm thinking about buying a dictionary and copying to a website I'm trying to make that generates random words and their definitions.
 

lxskllr

No Lifer
Nov 30, 2004
57,401
7,585
126
That would probably be copyright infringement. Why don't you use Wiktionary? It's both libre, and gratis. All you have to do is give attribution, and give other people the same rights you got from Wiktionary.
 

Red Squirrel

No Lifer
May 24, 2003
67,306
12,089
126
www.anyf.ca
I imagine it would be tedious to do it that way.

I wonder if you could use the spell check dictionary from an open source project like Libreoffice, not sure what the format is but I imagine there must be a list of words in there in a format that would be easier to work with.

Upon quick search I found this: https://github.com/wordset/wordset-dictionary

Might actually work, looks like it's in json format. I just tried to download one file and it's very unclean though. But there might be something else out there.

Whatever you get you will want to parse it out so you get just the words then you could load it up into SQL or maybe generate a big string array so it's built into the program as it's probably not data you're likely to change. Basically the jist would be to just generate a random number between 1 and how many words there are, and then load the corresponding one by index. I'd be tempted to create a custom data structure as it might be faster than just an array. Could make an interesting experiment. I would try the array first to see if it's acceptable.