Skip to content

Generate Anki-importable text for english vocabulary

Notifications You must be signed in to change notification settings

C-Higgins/anki-vocab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generates Anki notes for a list of words. Note: Non-USA pronunciation is filtered out. Modify the code if you want international pronunciations.

Provide a list of words:

node index.js cat dog

Output:

# separator:;
# html:true
# columns:word;partOfSpeech;pronunciation1;audio1;pronunciation2;audio2;pronunciation3;audio3;definition1;example1;definition2;example2;definition3;example3;definition4;example4;definition5;example5;definition6;example6;definition7;example7;definition8;example8;definition9;example9;definition10;example10;synonyms;antonyms
"cat";"noun";"/kæt/";"https://api.dictionaryapi.dev/media/pronunciations/en/cat-us.mp3";"";"";"";"";"An animal of the family Felidae:";"";"A person:";"";"A strong tackle used to hoist an anchor to the cathead of a ship.";"";"Short form of cat-o'-nine-tails.";"";"A sturdy merchant sailing vessel (now only in ""catboat"").";"";"The game of ""trap and ball"" (also called ""cat and dog"").";"";"The pointed piece of wood that is struck in the game of tipcat.";"";"A vagina, a vulva; the female external genitalia.";"";"A double tripod (for holding a plate, etc.) with six feet, of which three rest on the ground, in whatever position it is placed.";"";"A wheeled shelter, used in the Middle Ages as a siege weapon to allow assailants to approach enemy defences.";"";"saber-tooth, saber-toothed cat, feline, feline cat, pantherine, pantherine cat, Caniformia, carnivoran, cat-like, feliform, feloid, jaguar, leopard, lion, panther, tiger, Welsh cat, tortoise, felid";""
"cat";"verb";"/kæt/";"https://api.dictionaryapi.dev/media/pronunciations/en/cat-us.mp3";"";"";"";"";"To hoist (the anchor) by its ring so that it hangs at the cathead.";"";"To flog with a cat-o'-nine-tails.";"";"To vomit.";"";"To go wandering at night.";"";"To gossip in a catty manner.";"";"";"";"";"";"";"";"";"";"";"";"";""
"cat";"noun";"/kæt/";"https://api.dictionaryapi.dev/media/pronunciations/en/cat-us.mp3";"";"";"";"";"A twin-hulled ship or boat.";"";"A quarrelsome woman; a scold.";"";"A raft of three pieces of wood lashed together, the middle piece being longer than the others, and serving as a keel on which the rower squats while paddling.";"";"An old kind of fireship.";"";"";"";"";"";"";"";"";"";"";"";"";"";"twinhull";""
"cat";"noun";"/kæt/";"https://api.dictionaryapi.dev/media/pronunciations/en/cat-us.mp3";"";"";"";"";"A program and command in Unix that reads one or more files and directs their content to the standard output.";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";""
"cat";"verb";"/kæt/";"https://api.dictionaryapi.dev/media/pronunciations/en/cat-us.mp3";"";"";"";"";"To apply the cat command to (one or more files).";"";"To dump large amounts of data on (an unprepared target) usually with no intention of browsing it carefully.";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";""
"cat";"adjective";"/kæt/";"https://api.dictionaryapi.dev/media/pronunciations/en/cat-us.mp3";"";"";"";"";"Terrible, disastrous.";"The weather was cat, so they returned home early.";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";""
"cat";"noun";"/kæt/";"https://api.dictionaryapi.dev/media/pronunciations/en/cat-us.mp3";"";"";"";"";"A street name of the drug methcathinone.";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";""
"cat";"noun";"/kæt/";"https://api.dictionaryapi.dev/media/pronunciations/en/cat-us.mp3";"";"";"";"";"A catapult.";"a carrier's bow cats";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";""
"cat";"noun";"/kæt/";"https://api.dictionaryapi.dev/media/pronunciations/en/cat-us.mp3";"";"";"";"";"A group, often named or numbered, to which items are assigned based on similarity or defined criteria.";"I wouldn't put this book in the same category as the author's first novel.";"A collection of objects, together with a transitively closed collection of composable arrows between them, such that every object has an identity arrow, and such that arrow composition is associative.";"Just as a monoid consists of an underlying set with a binary operation ""on top of it"" which is closed, associative and with an identity, a category consists of an underlying digraph with an arrow composition operation ""on top of it"" which is transitively closed, associative, and with an identity at each object. In fact, a category's composition operation, when restricted to a single one of its objects, turns that object's set of arrows (which would all be loops) into a monoid.";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"class, family, genus, group, kingdom, order, phylum, race, tribe, type";""
"cat";"noun";"/kæt/";"https://api.dictionaryapi.dev/media/pronunciations/en/cat-us.mp3";"";"";"";"";"Any fish of the order Siluriformes, mainly found in fresh water, lacking scales, and having barbels like whiskers around the mouth";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"catlet, sheat, sheatfish";""
"cat";"noun";"/kæt/";"https://api.dictionaryapi.dev/media/pronunciations/en/cat-us.mp3";"";"";"";"";"Someone who creates a fake profile on a social media platform in order to deceive people.";"";"Such a fake profile.";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";""
"cat";"noun";"/kæt/";"https://api.dictionaryapi.dev/media/pronunciations/en/cat-us.mp3";"";"";"";"";"Any of a variety of earth-moving machines. (from their manufacturer Caterpillar Inc.)";"";"A caterpillar drive vehicle (a ground vehicle which uses caterpillar tracks), especially tractors, trucks, minibuses, and snow groomers.";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";""
"dog";"noun";"/dɔɡ/";"https://api.dictionaryapi.dev/media/pronunciations/en/dog-us.mp3";"";"";"";"";"A mammal, Canis familiaris or Canis lupus familiaris, that has been domesticated for thousands of years, of highly variable appearance due to human breeding.";"The dog barked all night long.";"Any member of the Family Canidae, including domestic dogs, wolves, coyotes, jackals, foxes, and their relatives (extant and extinct); canid.";"";"A male dog, wolf or fox, as opposed to a bitch or vixen.";"";"A dull, unattractive girl or woman.";"She’s a real dog.";"A man (derived from definition 2).";"He's a silly dog.";"A coward.";"Come back and fight, you dogs!";"Someone who is morally reprehensible.";"You dirty dog.";"A sexually aggressive man (cf. horny).";"";"Any of various mechanical devices for holding, gripping, or fastening something, particularly with a tooth-like projection.";"";"A click or pallet adapted to engage the teeth of a ratchet-wheel, to restrain the back action; a click or pawl. (See also: ratchet, windlass)";"";"Canis canis, Canis domesticus, Canis familiaris, canine, domestic dog, hound, sire, stud, bloke, chap, dude, fellow, guy, man, click, detent, pawl, andiron, dogiron, firedog, blackguard, bounder, cad, fool, heel, hound, scoundrel";""
"dog";"verb";"/dɔɡ/";"https://api.dictionaryapi.dev/media/pronunciations/en/dog-us.mp3";"";"";"";"";"To pursue with the intent to catch.";"";"To follow in an annoying or harassing way.";"The woman cursed him so that trouble would dog his every step.";"To fasten a hatch securely.";"It is very important to dog down these hatches...";"To watch, or participate, in sexual activity in a public place.";"I admit that I like to dog at my local country park.";"To intentionally restrict one's productivity as employee; to work at the slowest rate that goes unpunished.";"A surprise inspection of the night shift found that some workers were dogging it.";"To criticize.";"";"To divide (a watch) with a comrade.";"";"";"";"";"";"";"";"chase, chase after, go after, pursue, tag, tail, track, trail, goldbrick, soldier";""
"dog";"noun";"/dɔɡ/";"https://api.dictionaryapi.dev/media/pronunciations/en/dog-us.mp3";"";"";"";"";"Meat from a dog eaten as food.";"We visited South Korea this time around, where we ate dog meat for the first time.";"Meat prepared to be given to a dog as food.";"";"An insult intended to assert hyperbolically that another person has value only as a corpse to be fed to a dog.";"Did you just step on my blue suede shoes? You're dog meat now!";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"dog, dog food, fragrant meat";""

Generate a text file:

node index.js cat dog > output.txt

Import the resulting text file into Anki.

About

Generate Anki-importable text for english vocabulary

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published