From 03d2946ab576d5270802975cf8f46c15b85fc4f3 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 18 May 2017 12:58:20 +0100 Subject: [PATCH] Add wordlists in folder --- MarkovGrams/Program.cs | 87 ++++- wordlists/Colours.txt | 746 ++++++++++++++++++++++++++++++++++++ wordlists/Science Words.txt | 166 ++++++++ 3 files changed, 986 insertions(+), 13 deletions(-) create mode 100644 wordlists/Colours.txt create mode 100644 wordlists/Science Words.txt diff --git a/MarkovGrams/Program.cs b/MarkovGrams/Program.cs index 6c9762a..7e766fd 100644 --- a/MarkovGrams/Program.cs +++ b/MarkovGrams/Program.cs @@ -7,27 +7,88 @@ namespace MarkovGrams { class MainClass { - public static void Main(string[] args) + public static int Main(string[] args) { - if(args.Length != 4) + if(args.Length < 1) { Console.WriteLine("Usage:"); - Console.WriteLine(" ./MarkovGrams.exe "); - return; + Console.WriteLine(" ./MarkovGrams.exe "); + Console.WriteLine(); + Console.WriteLine("Available commands:"); + Console.WriteLine(" markov:"); + Console.WriteLine(" Generate new words using a markov chain."); + Console.WriteLine(" ngrams:"); + Console.WriteLine(" Generate raw unique n-grams"); + Console.WriteLine(); + Console.WriteLine("Type just ./MarovGrams.exe to see command-specific help."); + return 1; } - string wordlistFilename = args[0]; - int order = int.Parse(args[1]); - int desiredStringLength = int.Parse(args[2]); - int count = int.Parse(args[3]); + string mode = args[0]; + string wordlistFilename; + int order; + IEnumerable words, ngrams; - IEnumerable words = File.ReadLines(wordlistFilename).SelectMany(word => word.Trim().Split(' ')); - IEnumerable ngrams = NGrams.GenerateFlat(words, order); + switch(mode) + { + case "markov": + if(args.Length != 5) + { + Console.WriteLine("markov command usage:"); + Console.WriteLine(" ./MarkovGrams.exe markov "); + Console.WriteLine(); + Console.WriteLine(" The path to the wordlist to read from."); + Console.WriteLine(" The order of the n-grams to use."); + Console.WriteLine(" The length of word to generate."); + Console.WriteLine(" The number of words to generate."); + Console.WriteLine(); + return 1; + } + wordlistFilename = args[1]; + order = int.Parse(args[2]); + int desiredStringLength = int.Parse(args[3]); + int count = int.Parse(args[4]); - UnweightedMarkovChain chain = new UnweightedMarkovChain(ngrams); + words = File.ReadLines(wordlistFilename).SelectMany(word => word.Trim().Split(' ')); + ngrams = NGrams.GenerateFlat(words, order); - for(int i = 0; i < count; i++) - Console.WriteLine(chain.Generate(desiredStringLength)); + UnweightedMarkovChain chain = new UnweightedMarkovChain(ngrams); + + for(int i = 0; i < count; i++) + Console.WriteLine(chain.Generate(desiredStringLength)); + break; + + case "ngrams": + if(args.Length != 3) + { + Console.WriteLine("ngrams command usage:"); + Console.WriteLine(" ./MarkovGrams.exe "); + Console.WriteLine(); + Console.WriteLine(" The path to the wordlist to read from."); + Console.WriteLine(" The order of n-grams to generate."); + Console.WriteLine(); + return 1; + } + + wordlistFilename = args[1]; + order = int.Parse(args[2]); + words = File.ReadLines(wordlistFilename).SelectMany(word => word.Trim().Split(' ')); + ngrams = NGrams.GenerateFlat(words, order); + + foreach(string ngram in ngrams) + Console.WriteLine(ngram); + + break; + default: + Console.WriteLine("Unknown command {0}."); + Console.WriteLine("Available commands:"); + Console.WriteLine(" markov Generate words with a markov chain"); + Console.WriteLine(" ngrams Generate unique ngrams from wordlists"); + Console.WriteLine(); + return 1; + } + + return 0; } } } diff --git a/wordlists/Colours.txt b/wordlists/Colours.txt new file mode 100644 index 0000000..560a4b3 --- /dev/null +++ b/wordlists/Colours.txt @@ -0,0 +1,746 @@ +air force blue +alice blue +alizarin crimson +almond +amaranth +amber +american rose +amethyst +android green +anti-flash white +antique brass +antique fuchsia +antique white +ao +apple green +apricot +aqua +aquamarine +army green +arylide yellow +ash grey +asparagus +atomic tangerine +auburn +aureolin +aurometalsaurus +awesome +azure +azure mist/web +baby blue +baby blue eyes +baby pink +ball blue +banana mania +banana yellow +battleship grey +bazaar +beau blue +beaver +beige +bisque +bistre +bittersweet +black +blanched almond +bleu de france +blizzard blue +blond +blue +blue bell +blue gray +blue green +blue purple +blue violet +blush +bole +bondi blue +bone +boston university red +bottle green +boysenberry +brandeis blue +brass +brick red +bright cerulean +bright green +bright lavender +bright maroon +bright pink +bright turquoise +bright ube +brilliant lavender +brilliant rose +brink pink +british racing green +bronze +brown +bubble gum +bubbles +buff +bulgarian rose +burgundy +burlywood +burnt orange +burnt sienna +burnt umber +byzantine +byzantium +cg blue +cg red +cadet +cadet blue +cadet grey +cadmium green +cadmium orange +cadmium red +cadmium yellow +café au lait +café noir +cal poly pomona green +cambridge blue +camel +camouflage green +canary +canary yellow +candy apple red +candy pink +capri +caput mortuum +cardinal +caribbean green +carmine +carmine pink +carmine red +carnation pink +carnelian +carolina blue +carrot orange +celadon +celeste +celestial blue +cerise +cerise pink +cerulean +cerulean blue +chamoisee +champagne +charcoal +chartreuse +cherry +cherry blossom pink +chestnut +chocolate +chrome yellow +cinereous +cinnabar +cinnamon +citrine +classic rose +cobalt +cocoa brown +coffee +columbia blue +cool black +cool grey +copper +copper rose +coquelicot +coral +coral pink +coral red +cordovan +corn +cornell red +cornflower +cornflower blue +cornsilk +cosmic latte +cotton candy +cream +crimson +crimson red +crimson glory +cyan +daffodil +dandelion +dark blue +dark brown +dark byzantium +dark candy apple red +dark cerulean +dark chestnut +dark coral +dark cyan +dark electric blue +dark goldenrod +dark gray +dark green +dark jungle green +dark khaki +dark lava +dark lavender +dark magenta +dark midnight blue +dark olive green +dark orange +dark orchid +dark pastel blue +dark pastel green +dark pastel purple +dark pastel red +dark pink +dark powder blue +dark raspberry +dark red +dark salmon +dark scarlet +dark sea green +dark sienna +dark slate blue +dark slate gray +dark spring green +dark tan +dark tangerine +dark taupe +dark terra cotta +dark turquoise +dark violet +dartmouth green +davy grey +debian red +deep carmine +deep carmine pink +deep carrot orange +deep cerise +deep champagne +deep chestnut +deep coffee +deep fuchsia +deep jungle green +deep lilac +deep magenta +deep peach +deep pink +deep saffron +deep sky blue +denim +desert +desert sand +dim gray +dodger blue +dogwood rose +dollar bill +drab +duke blue +earth yellow +ecru +eggplant +eggshell +egyptian blue +electric blue +electric crimson +electric cyan +electric green +electric indigo +electric lavender +electric lime +electric purple +electric ultramarine +electric violet +electric yellow +emerald +eton blue +fallow +falu red +famous +fandango +fashion fuchsia +fawn +feldgrau +fern +fern green +ferrari red +field drab +fire engine red +firebrick +flame +flamingo pink +flavescent +flax +floral white +fluorescent orange +fluorescent pink +fluorescent yellow +folly +forest green +french beige +french blue +french lilac +french rose +fuchsia +fuchsia pink +fulvous +fuzzy wuzzy +gainsboro +gamboge +ghost white +ginger +glaucous +glitter +gold +golden brown +golden poppy +golden yellow +goldenrod +granny smith apple +gray +gray asparagus +green +green blue +green yellow +grullo +guppie green +halayà úbe +han blue +han purple +hansa yellow +harlequin +harvard crimson +harvest gold +heart gold +heliotrope +hollywood cerise +honeydew +hooker green +hot magenta +hot pink +hunter green +icterine +inchworm +india green +indian red +indian yellow +indigo +international klein blue +international orange +iris +isabelline +islamic green +ivory +jade +jasmine +jasper +jazzberry jam +jonquil +june bud +jungle green +ku crimson +kelly green +khaki +la salle green +languid lavender +lapis lazuli +laser lemon +laurel green +lava +lavender +lavender blue +lavender blush +lavender gray +lavender indigo +lavender magenta +lavender mist +lavender pink +lavender purple +lavender rose +lawn green +lemon +lemon yellow +lemon chiffon +lemon lime +light crimson +light thulian pink +light apricot +light blue +light brown +light carmine pink +light coral +light cornflower blue +light cyan +light fuchsia pink +light goldenrod yellow +light gray +light green +light khaki +light pastel purple +light pink +light salmon +light salmon pink +light sea green +light sky blue +light slate gray +light taupe +light yellow +lilac +lime +lime green +lincoln green +linen +lion +liver +lust +msu green +macaroni and cheese +magenta +magic mint +magnolia +mahogany +maize +majorelle blue +malachite +manatee +mango tango +mantis +maroon +mauve +mauve taupe +mauvelous +maya blue +meat brown +medium persian blue +medium aquamarine +medium blue +medium candy apple red +medium carmine +medium champagne +medium electric blue +medium jungle green +medium lavender magenta +medium orchid +medium purple +medium red violet +medium sea green +medium slate blue +medium spring bud +medium spring green +medium taupe +medium teal blue +medium turquoise +medium violet red +melon +midnight blue +midnight green +mikado yellow +mint +mint cream +mint green +misty rose +moccasin +mode beige +moonstone blue +mordant red 19 +moss green +mountain meadow +mountbatten pink +mulberry +munsell +mustard +myrtle +nadeshiko pink +napier green +naples yellow +navajo white +navy blue +neon carrot +neon fuchsia +neon green +non-photo blue +north texas green +ocean boat blue +ochre +office green +old gold +old lace +old lavender +old mauve +old rose +olive +olive drab +olive green +olivine +onyx +opera mauve +orange +orange yellow +orange peel +orange red +orchid +otter brown +outer space +outrageous orange +oxford blue +pacific blue +pakistan green +palatinate blue +palatinate purple +pale aqua +pale blue +pale brown +pale carmine +pale cerulean +pale chestnut +pale copper +pale cornflower blue +pale gold +pale goldenrod +pale green +pale lavender +pale magenta +pale pink +pale plum +pale red violet +pale robin egg blue +pale silver +pale spring bud +pale taupe +pale violet red +pansy purple +papaya whip +paris green +pastel blue +pastel brown +pastel gray +pastel green +pastel magenta +pastel orange +pastel pink +pastel purple +pastel red +pastel violet +pastel yellow +patriarch +payne grey +peach +peach puff +peach yellow +pear +pearl +pearl aqua +peridot +periwinkle +persian blue +persian indigo +persian orange +persian pink +persian plum +persian red +persian rose +phlox +phthalo blue +phthalo green +piggy pink +pine green +pink +pink flamingo +pink sherbet +pink pearl +pistachio +platinum +plum +portland orange +powder blue +princeton orange +prussian blue +psychedelic purple +puce +pumpkin +purple +purple heart +purple mountain's majesty +purple mountain majesty +purple pizzazz +purple taupe +rackley +radical red +raspberry +raspberry glace +raspberry pink +raspberry rose +raw sienna +razzle dazzle rose +razzmatazz +red +red orange +red brown +red violet +rich black +rich carmine +rich electric blue +rich lilac +rich maroon +rifle green +robin's egg blue +rose +rose bonbon +rose ebony +rose gold +rose madder +rose pink +rose quartz +rose taupe +rose vale +rosewood +rosso corsa +rosy brown +royal azure +royal blue +royal fuchsia +royal purple +ruby +ruddy +ruddy brown +ruddy pink +rufous +russet +rust +sacramento state green +saddle brown +safety orange +saffron +saint patrick blue +salmon +salmon pink +sand +sand dune +sandstorm +sandy brown +sandy taupe +sap green +sapphire +satin sheen gold +scarlet +school bus yellow +screamin green +sea blue +sea green +seal brown +seashell +selective yellow +sepia +shadow +shamrock +shamrock green +shocking pink +sienna +silver +sinopia +skobeloff +sky blue +sky magenta +slate blue +slate gray +smalt +smokey topaz +smoky black +snow +spiro disco ball +spring bud +spring green +steel blue +stil de grain yellow +stizza +stormcloud +straw +sunglow +sunset +sunset orange +tan +tangelo +tangerine +tangerine yellow +taupe +taupe gray +tawny +tea green +tea rose +teal +teal blue +teal green +terra cotta +thistle +thulian pink +tickle me pink +tiffany blue +tiger eye +timberwolf +titanium yellow +tomato +toolbox +topaz +tractor red +trolley grey +tropical rain forest +true blue +tufts blue +tumbleweed +turkish rose +turquoise +turquoise blue +turquoise green +tuscan red +twilight lavender +tyrian purple +ua blue +ua red +ucla blue +ucla gold +ufo green +up forest green +up maroon +usc cardinal +usc gold +ube +ultra pink +ultramarine +ultramarine blue +umber +united nations blue +university of california gold +unmellow yellow +upsdell red +urobilin +utah crimson +vanilla +vegas gold +venetian red +verdigris +vermilion +veronica +violet +violet blue +violet red +viridian +vivid auburn +vivid burgundy +vivid cerise +vivid tangerine +vivid violet +warm black +waterspout +wenge +wheat +white +white smoke +wild strawberry +wild watermelon +wild blue yonder +wine +wisteria +xanadu +yale blue +yellow +yellow orange +yellow green +zaffre +zinnwaldite brown diff --git a/wordlists/Science Words.txt b/wordlists/Science Words.txt new file mode 100644 index 0000000..7fe6246 --- /dev/null +++ b/wordlists/Science Words.txt @@ -0,0 +1,166 @@ +ablative +accelerator +air +algorithm +alloy +antenna +anti +attenuation +attraction +audio +auto +auxiliary +axis +bi +boot +box +burst +cable +change +charged +coaxial +coil +combination +command +communication +complex +compress +conduit +controlled +controls +cool +cube +cubic +cylinder +decentralised +detector +di +dial +dipolar +drive +electro magnetic spectrum +electronic +electronics +emissions +encryption +engine +extend +file system +fractional +friction +fuel +gas +generate +geographical +handle +heat +heptagon +hi +hologram +hydraulic +hyperspace +ic +ing +inter +intra +inverse +light +liquid +liquid crystal display +long +machine +magnet +magnetic +manual +maplex +material +materialise +micro +morph +multiplex +multiplix +nail +noise +opaque +orbital +particle +pellet +percentage +phase +phasic +pipe +planet +plate +pneumatic door +polar +potential divider +pressure +primary +print +process +proto +quad +quadrilateral +quin +radio dish +range +rays +reaction +receive +reflect +reflective +reflector +refractive +repelling +retractable +reverse +ring +roll +rotate +route +routing +scale +screw +seal +secondary +secure +sensor +shield +shift +short +signal +signal strength +solder +solid +sort +sound +star +state machine +station +stellar +sub +substate +system +tele +temperature +terra +tertiary +thread +three dimensional +tracking +traction +trajectory +trans +transator +transfer +translate +translucent +transmission +transmit +transparent +transubstantiate +tri +triangle +troque +ultra +wire