Skip to content

Commit

Permalink
strings - added comment, added a couple of new word types
Browse files Browse the repository at this point in the history
  • Loading branch information
brianvoe committed Jan 19, 2024
1 parent bd0a93f commit 4ab4a51
Show file tree
Hide file tree
Showing 13 changed files with 274 additions and 64 deletions.
4 changes: 4 additions & 0 deletions data/word.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var Word = map[string][]string{
"noun_collective_thing": {"wad", "pair", "album", "string", "anthology", "reel", "outfit", "fleet", "comb", "archipelago", "quiver", "bale", "packet", "hedge", "basket", "orchard", "batch", "library", "battery", "set", "harvest", "block", "forest", "book", "group", "bouquet", "collection", "bowl", "stack", "bunch", "hand", "bundle", "catalog", "shower", "ream", "chest", "heap", "range", "cluster", "pack", "hail", "cloud", "galaxy", "sheaf", "clump"},
"noun_countable": {"camp", "hospital", "shirt", "sock", "plant", "cup", "fork", "spoon", "plate", "straw", "town", "box", "bird", "father", "answer", "egg", "purse", "mirror", "mistake", "toilet", "toothbrush", "shower", "towel", "pool", "corner", "card", "lawn", "city", "egg", "yard", "burger", "kilometer", "mile", "father", "film", "actor", "issue", "machine", "liter", "room", "station", "journey", "castle", "hour", "finger", "boy", "book", "year", "second", "son", "month", "group", "hall", "cat", "week", "picture", "day", "village", "effect", "baby", "weekend", "class", "meal", "river", "grade", "bush", "desk", "stream", "method", "brother", "sister", "factory", "aunt", "bush", "program", "uncle", "ball", "cousin", "wall", "grandmother", "cup", "grandfather", "week", "school", "shirt", "child", "king", "road", "judge", "bridge", "car", "line", "book", "eye", "teacher", "foot", "party", "face", "day", "chest", "handle", "week", "hotel", "eye", "animal", "doctor", "adult", "village", "key", "bird", "bank", "program", "idea", "gun", "card", "brother", "dress", "room", "door", "mouth", "club", "game", "ring", "project", "sister", "road", "coat", "account", "group", "cigarette", "farm", "river", "college", "computer", "walk", "corner", "cat", "head", "street", "election", "country", "chair", "crowd", "cup", "plant", "farm", "handle", "model", "book", "message", "battle", "pen", "pencil", "elephant", "carrot", "onion", "garden", "country", "engine", "bill", "apple", "noun", "club", "crowd", "window", "field", "friend", "verb", "class", "flower", "seed", "lake", "plant", "animal", "ocean", "whale", "fish", "stream", "cloud", "couch", "steak", "problem", "light", "door", "room", "painting", "shop", "apartment", "candle", "adult", "building", "plan", "page", "ball", "game", "animal", "apartment", "box", "thought", "walk", "lady", "bottle", "article", "game", "kettle", "car", "house", "hoses", "orange", "phone", "app", "window", "door", "dollar", "foot", "cent", "library", "cat", "bed", "pound", "gate", "tomatoes", "gun", "holiday", "woman", "job", "shock", "salary", "tax", "coat", "scooter", "dog", "problem", "field", "answer", "ear", "camp", "case", "road", "woman", "product", "bridge", "man", "dream", "idea", "scheme", "invention", "cigarette", "mother", "friend", "chapter", "computer", "dream", "father", "child", "motor", "deskpath", "factory", "park", "newspaper", "hat", "dream", "table", "kitchen", "student", "captain", "doctor", "bus", "neck", "class", "list", "member", "chest", "valley", "product", "horse", "captain", "star", "hour", "page", "bus", "girl", "month", "child", "house", "boy", "bill", "kitchen", "chapter", "boat", "hand", "dress", "table", "wall", "chair", "train", "minute", "magazine", "bus", "party", "bird", "lake", "job", "nation", "bike", "election", "hand", "box", "beach", "address", "project", "task", "park", "face", "college", "bell", "plane", "store", "hall", "accident", "daughter", "ship", "candy", "smile", "city", "island", "case", "spot", "film", "husband", "artist", "tour", "bag", "boat", "driver", "office", "chair", "path", "dog", "bag", "finger", "apartment", "garden", "heart", "year", "engine", "girl", "day", "castle", "plane", "ring", "brother", "edge", "picture", "meeting", "tent", "dog", "hat", "head", "bottle", "hill"},
"noun_uncountable": {"accommodation", "advertising", "air", "aid", "advice", "anger", "art", "assistance", "bread", "business", "butter", "calm", "cash", "chaos", "cheese", "childhood", "clothing", "coffee", "content", "corruption", "courage", "currency", "damage", "danger", "darkness", "data", "determination", "economics", "education", "electricity", "employment", "energy", "entertainment", "enthusiasm", "equipment", "evidence", "failure", "fame", "fire", "flour", "food", "freedom", "friendship", "fuel", "furniture", "fun", "genetics", "gold", "grammar", "guilt", "hair", "happiness", "harm", "health", "heat", "help", "homework", "honesty", "hospitality", "housework", "humour", "imagination", "importance", "information", "innocence", "intelligence", "jealousy", "juice", "justice", "kindness", "knowledge", "labour", "lack", "laughter", "leisure", "literature", "litter", "logic", "love", "luck", "magic", "management", "metal", "milk", "money", "motherhood", "motivation", "music", "nature", "news", "nutrition", "obesity", "oil", "old age", "oxygen", "paper", "patience", "permission", "pollution", "poverty", "power", "pride", "production", "progress", "pronunciation", "publicity", "punctuation", "quality", "quantity", "racism", "rain", "relaxation", "research", "respect", "rice", "room (space)", "rubbish", "safety", "salt", "sand", "seafood", "shopping", "silence", "smoke", "snow", "software", "soup", "speed", "spelling", "stress", "sugar", "sunshine", "tea", "tennis", "time", "tolerance", "trade", "traffic", "transportation", "travel", "trust", "understanding", "unemployment", "usage", "violence", "vision", "warmth", "water", "wealth", "weather", "weight", "welfare", "wheat", "width", "wildlife", "wisdom", "wood", "work", "yoga", "youth"},
"noun_determiner": {"the", "a", "an", "this", "that", "these", "those", "my", "your", "his", "her", "its", "our", "their", "some", "any", "each", "every", "certain"},
//"noun_proper": {}, // This refers to an actual person(John Doe), place(Chipotle, Tennessee)

// Verbs
Expand Down Expand Up @@ -76,4 +77,7 @@ var Word = map[string][]string{
"connective_listing": {"firstly", "secondly", "first of all", "finally", "lastly", "for one thing", "for another", "in the first place", "to begin with", "next", "in summation", "to conclude"},
"connective_casual": {"accordingly", "all the same", "an effect of", "an outcome of", "an upshot of", "as a consequence of", "as a result of", "because", "caused by", "consequently", "despite this", "even though", "hence", "however", "in that case", "moreover", "nevertheless", "otherwise", "so", "so as", "stemmed from", "still", "then", "therefore", "though", "under the circumstances", "yet"},
"connective_examplify": {"accordingly", "as a result", "as exemplified by", "consequently", "for example", "for instance", "for one thing", "including", "provided that", "since", "so", "such as", "then", "therefore", "these include", "through", "unless", "without"},

// Misc
"interjection": {"wow", "hey", "oops", "ouch", "yay", "aha", "eek", "huh", "hmm", "whoa", "yikes", "phew", "gee", "alas", "bravo"},
}
28 changes: 14 additions & 14 deletions generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ func ExampleGenerate() {
fmt.Println(Generate("{shufflestrings:[key:value,int:string,1:2,a:b]}"))

// Output: Markus Moen ssn is 526643139 and lives at 599 Daleton
// Niche backwards caused.
// [1 3 2]
// -4
// 3
// 46
// [a:b int:string key:value 1:2]
// Congolese choir computer.
// [3 1 2]
// 2
// 4
// 17
// [int:string 1:2 a:b key:value]
}

func ExampleFaker_Generate() {
Expand All @@ -71,12 +71,12 @@ func ExampleFaker_Generate() {
fmt.Println(f.Generate("{shufflestrings:[key:value,int:string,1:2,a:b]}"))

// Output: Markus Moen ssn is 526643139 and lives at 599 Daleton
// Niche backwards caused.
// [1 3 2]
// -4
// 3
// 46
// [a:b int:string key:value 1:2]
// Congolese choir computer.
// [3 1 2]
// 2
// 4
// 17
// [int:string 1:2 a:b key:value]
}

func BenchmarkGenerate(b *testing.B) {
Expand Down Expand Up @@ -480,14 +480,14 @@ func ExampleMap() {
Seed(11)
fmt.Println(Map())

// Output: map[contrast:Associate gauva:map[jump:scale] generally:8504801 him:[them whomever ours hence here his] its:8335564 table:map[did:[these delay these]] therefore:map[nearly:784141.8] thing:map[everything:[where caused why week hourly]]]
// Output: map[here:Manager herself:map[trip:[far computer was unless whom riches]] how:8504801 ouch:Keith Ullrich outstanding:1860846 that:web services]
}

func ExampleFaker_Map() {
f := New(11)
fmt.Println(f.Map())

// Output: map[contrast:Associate gauva:map[jump:scale] generally:8504801 him:[them whomever ours hence here his] its:8335564 table:map[did:[these delay these]] therefore:map[nearly:784141.8] thing:map[everything:[where caused why week hourly]]]
// Output: map[here:Manager herself:map[trip:[far computer was unless whom riches]] how:8504801 ouch:Keith Ullrich outstanding:1860846 that:web services]
}

func TestMap(t *testing.T) {
Expand Down
2 changes: 2 additions & 0 deletions lookup.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ func initLookup() {
addWordPronounLookup()
addWordSentenceLookup()
addWordVerbLookup()
addWordCommentLookup()
addWordMiscLookup()
}

// internalFuncLookups is the internal map array with mapping to all available data
Expand Down
24 changes: 12 additions & 12 deletions product_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ func ExampleProduct() {
fmt.Println(product.UPC)

// Output: Olive Copper Monitor
// Backwards caused quarterly without week it hungry thing someone him regularly. Whomever this revolt hence from his timing as quantity us these yours.
// Choir computer still far unless army party riches theirs instead here. Whichever that those instance growth has ouch enough Swiss us since down he. Aha us you to upon how this this furniture way no play towel.
// [clothing tools and hardware]
// 7.61
// 41.61
// [ultra-lightweight]
// navy
// brass
// 012780949980
// olive
// stainless
// 074937734366
}

func ExampleFaker_Product() {
Expand All @@ -40,13 +40,13 @@ func ExampleFaker_Product() {
fmt.Println(product.UPC)

// Output: Olive Copper Monitor
// Backwards caused quarterly without week it hungry thing someone him regularly. Whomever this revolt hence from his timing as quantity us these yours.
// Choir computer still far unless army party riches theirs instead here. Whichever that those instance growth has ouch enough Swiss us since down he. Aha us you to upon how this this furniture way no play towel.
// [clothing tools and hardware]
// 7.61
// 41.61
// [ultra-lightweight]
// navy
// brass
// 012780949980
// olive
// stainless
// 074937734366
}

func TestProduct(t *testing.T) {
Expand Down Expand Up @@ -134,14 +134,14 @@ func ExampleProductDescription() {
Seed(11)
fmt.Println(ProductDescription())

// Output: Generally half where everything niche backwards caused quarterly without week it hungry thing someone him. Today whomever this revolt hence from his timing as quantity us these yours.
// Output: How these keep trip Congolese choir computer still far unless army party riches theirs instead. Mine whichever that those instance. Has ouch enough Swiss us since down.
}

func ExampleFaker_ProductDescription() {
f := New(11)
fmt.Println(f.ProductDescription())

// Output: Generally half where everything niche backwards caused quarterly without week it hungry thing someone him. Today whomever this revolt hence from his timing as quantity us these yours.
// Output: How these keep trip Congolese choir computer still far unless army party riches theirs instead. Mine whichever that those instance. Has ouch enough Swiss us since down.
}

func BenchmarkProductDescription(b *testing.B) {
Expand Down
56 changes: 28 additions & 28 deletions template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,30 +231,30 @@ func ExampleEmailText() {
fmt.Println(string(value))

// Output:
// Subject: Greetings from Marcel!
// Subject: Greetings from Marcel!
//
// Dear Pagac,
//
// Hello there! Sending positive vibes your way.
//
// I hope you're doing great. May your week be filled with joy.
//
// Virtually woman where team late quarterly without week it hungry. Thing someone him regularly today whomever this revolt hence from. His timing as quantity us these yours live these frantic. Not may another how this ours his them those whose. Them batch its Iraqi most that few abroad cheese this.
// This me far smile where was by army party riches. Theirs instead here mine whichever that those instance growth has. Ouch enough Swiss us since down he she aha us. You to upon how this this furniture way no play. Towel that us to accordingly theirs purse enough so though.
//
// Whereas next how there gorgeous genetics time choir fiction therefore. Yourselves am those infrequently heap software quarterly rather punctuation yellow. Where several his orchard to frequently hence victorious boxers each. Does auspicious yourselves first soup tomorrow this that must conclude. Anyway some yearly who cough laugh himself both yet rarely.
// Election often until eek weekly yet oops until conclude his. Stay elsewhere such that galaxy clean that last each stack. Reluctantly theirs wisp aid firstly highly butter accordingly should already. Calm shake according fade neither kuban upon this he fortnightly. Occasionally bunch on who elsewhere lastly hourly right there honesty.
//
// Me dolphin intensely block would leap plane us first then. Down them eager would hundred super throughout animal yet themselves. Been group flock shake part purchase up usually it her. None it hers boat what their there Turkmen moreover one. Lebanese to brace these shower in it everybody should whatever.
// We is how result out Shakespearean have whom yearly another. Packet are behind late lot finally time themselves goodness quizzical. Our therefore could fact cackle yourselves zebra for whose enormously. All bowl out wandering secondly yellow another your hourly spit. Since tomorrow hers words little think will our by Polynesian.
//
// I'm curious to know what you think about it. If you have a moment, please feel free to check out the project on Bitbucket
// I'm curious to know what you think about it. If you have a moment, please feel free to check out the project on GitLab
//
// I'm eager to hear what you think. Looking forward to your feedback!
// Your insights would be invaluable. Your thoughts matter to me.
//
// Thank you for your consideration! Thanks in advance for your time.
// I appreciate your attention to this matter. Your feedback is greatly appreciated.
//
// Kind regards
// Milford Johnston
// jamelhaag@king.org
// (507)096-3058
// Best wishes
// Daryl Leannon
// oceaneokuneva@roberts.org
// 1-816-608-2233
}

func ExampleFaker_EmailText() {
Expand All @@ -268,30 +268,30 @@ func ExampleFaker_EmailText() {
fmt.Println(string(value))

// Output:
// Subject: Greetings from Marcel!
// Subject: Greetings from Marcel!
//
// Dear Pagac,
//
// Hello there! Sending positive vibes your way.
//
// I hope you're doing great. May your week be filled with joy.
//
// Virtually woman where team late quarterly without week it hungry. Thing someone him regularly today whomever this revolt hence from. His timing as quantity us these yours live these frantic. Not may another how this ours his them those whose. Them batch its Iraqi most that few abroad cheese this.
// This me far smile where was by army party riches. Theirs instead here mine whichever that those instance growth has. Ouch enough Swiss us since down he she aha us. You to upon how this this furniture way no play. Towel that us to accordingly theirs purse enough so though.
//
// Whereas next how there gorgeous genetics time choir fiction therefore. Yourselves am those infrequently heap software quarterly rather punctuation yellow. Where several his orchard to frequently hence victorious boxers each. Does auspicious yourselves first soup tomorrow this that must conclude. Anyway some yearly who cough laugh himself both yet rarely.
// Election often until eek weekly yet oops until conclude his. Stay elsewhere such that galaxy clean that last each stack. Reluctantly theirs wisp aid firstly highly butter accordingly should already. Calm shake according fade neither kuban upon this he fortnightly. Occasionally bunch on who elsewhere lastly hourly right there honesty.
//
// Me dolphin intensely block would leap plane us first then. Down them eager would hundred super throughout animal yet themselves. Been group flock shake part purchase up usually it her. None it hers boat what their there Turkmen moreover one. Lebanese to brace these shower in it everybody should whatever.
// We is how result out Shakespearean have whom yearly another. Packet are behind late lot finally time themselves goodness quizzical. Our therefore could fact cackle yourselves zebra for whose enormously. All bowl out wandering secondly yellow another your hourly spit. Since tomorrow hers words little think will our by Polynesian.
//
// I'm curious to know what you think about it. If you have a moment, please feel free to check out the project on Bitbucket
// I'm curious to know what you think about it. If you have a moment, please feel free to check out the project on GitLab
//
// I'm eager to hear what you think. Looking forward to your feedback!
// Your insights would be invaluable. Your thoughts matter to me.
//
// Thank you for your consideration! Thanks in advance for your time.
// I appreciate your attention to this matter. Your feedback is greatly appreciated.
//
// Kind regards
// Milford Johnston
// jamelhaag@king.org
// (507)096-3058
// Best wishes
// Daryl Leannon
// oceaneokuneva@roberts.org
// 1-816-608-2233
}

// TemplateMarkdown examples and tests
Expand All @@ -306,13 +306,13 @@ func ExampleMarkdown() {
fmt.Println(string(value))

// Output:
// # PurpleSheep5
// # PurpleSheep5
//
// *Author: Amie Feil*
//
// Quarterly without week it hungry thing someone. Him regularly today whomever this revolt hence. From his timing as quantity us these. Yours live these frantic not may another. How this ours his them those whose.
// Was by army party riches theirs instead. Here mine whichever that those instance growth. Has ouch enough Swiss us since down. He she aha us you to upon. How this this furniture way no play.
//
// Them batch its Iraqi most that few. Abroad cheese this whereas next how there. Gorgeous genetics time choir fiction therefore yourselves. Am those infrequently heap software quarterly rather. Punctuation yellow where several his orchard to.
// Towel that us to accordingly theirs purse. Enough so though election often until eek. Weekly yet oops until conclude his stay. Elsewhere such that galaxy clean that last. Each stack reluctantly theirs wisp aid firstly.
//
// ## Table of Contents
// - [Installation](#installation)
Expand Down Expand Up @@ -345,13 +345,13 @@ func ExampleFaker_Markdown() {
fmt.Println(string(value))

// Output:
// # PurpleSheep5
// # PurpleSheep5
//
// *Author: Amie Feil*
//
// Quarterly without week it hungry thing someone. Him regularly today whomever this revolt hence. From his timing as quantity us these. Yours live these frantic not may another. How this ours his them those whose.
// Was by army party riches theirs instead. Here mine whichever that those instance growth. Has ouch enough Swiss us since down. He she aha us you to upon. How this this furniture way no play.
//
// Them batch its Iraqi most that few. Abroad cheese this whereas next how there. Gorgeous genetics time choir fiction therefore yourselves. Am those infrequently heap software quarterly rather. Punctuation yellow where several his orchard to.
// Towel that us to accordingly theirs purse. Enough so though election often until eek. Weekly yet oops until conclude his stay. Elsewhere such that galaxy clean that last. Each stack reluctantly theirs wisp aid firstly.
//
// ## Table of Contents
// - [Installation](#installation)
Expand Down
Loading

0 comments on commit 4ab4a51

Please sign in to comment.