Skip to content

Commit 5a2657a

Browse files
committed
lookup - updated keywords to not have the display name in the keywords list
1 parent 67d31c1 commit 5a2657a

34 files changed

+110
-110
lines changed

address.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ func addAddressLookup() {
236236
Output: "map[string]any",
237237
ContentType: "application/json",
238238
Aliases: []string{"full address", "residential address", "mailing address", "street address", "home address"},
239-
Keywords: []string{"address", "residential", "location", "street", "city", "state", "country", "postal", "code", "mailing", "home", "house", "apartment", "zipcode", "coordinates"},
239+
Keywords: []string{"residential", "location", "street", "city", "state", "country", "postal", "code", "mailing", "home", "house", "apartment", "zipcode", "coordinates"},
240240
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
241241
return address(f), nil
242242
},
@@ -249,7 +249,7 @@ func addAddressLookup() {
249249
Example: "Marcelside",
250250
Output: "string",
251251
Aliases: []string{"city name", "urban area", "municipality name", "town name", "metropolitan area"},
252-
Keywords: []string{"city", "town", "municipality", "urban", "area", "population", "hub", "culture", "commerce", "metropolitan", "settlement", "community", "district"},
252+
Keywords: []string{"town", "municipality", "urban", "area", "population", "hub", "culture", "commerce", "metropolitan", "settlement", "community", "district"},
253253
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
254254
return city(f), nil
255255
},
@@ -262,7 +262,7 @@ func addAddressLookup() {
262262
Example: "United States of America",
263263
Output: "string",
264264
Aliases: []string{"country name", "nation name", "sovereign state", "national territory", "independent country"},
265-
Keywords: []string{"country", "nation", "government", "territory", "sovereign", "independent", "state", "republic", "kingdom", "empire", "federation", "commonwealth"},
265+
Keywords: []string{"nation", "government", "territory", "sovereign", "independent", "state", "republic", "kingdom", "empire", "federation", "commonwealth"},
266266
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
267267
return country(f), nil
268268
},
@@ -288,7 +288,7 @@ func addAddressLookup() {
288288
Example: "Illinois",
289289
Output: "string",
290290
Aliases: []string{"state name", "province name", "region name", "administrative division", "territory name"},
291-
Keywords: []string{"state", "province", "region", "division", "governmental", "territory", "area", "laws", "government", "administrative", "subdivision", "district", "county"},
291+
Keywords: []string{"province", "region", "division", "governmental", "territory", "area", "laws", "government", "administrative", "subdivision", "district", "county"},
292292
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
293293
return state(f), nil
294294
},
@@ -314,7 +314,7 @@ func addAddressLookup() {
314314
Example: "364 East Rapidsborough",
315315
Output: "string",
316316
Aliases: []string{"street address", "shipping address", "billing address", "mailing address", "address line 1", "line 1", "road address", "avenue address", "drive address", "thoroughfare address"},
317-
Keywords: []string{"address", "street", "road", "avenue", "drive", "lane", "way", "public", "thoroughfare", "boulevard", "court", "place", "circle", "terrace", "highway"},
317+
Keywords: []string{"address", "road", "avenue", "drive", "lane", "way", "public", "thoroughfare", "boulevard", "court", "place", "circle", "terrace", "highway"},
318318
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
319319
return street(f), nil
320320
},
@@ -379,7 +379,7 @@ func addAddressLookup() {
379379
Example: "Apt 123",
380380
Output: "string",
381381
Aliases: []string{"apartment unit", "suite number", "office number", "building unit", "room number", "address line 2", "line 2"},
382-
Keywords: []string{"unit", "apartment", "suite", "office", "identifier", "building", "number", "within", "room", "floor", "level", "section", "compartment"},
382+
Keywords: []string{"apartment", "suite", "office", "identifier", "building", "number", "within", "room", "floor", "level", "section", "compartment"},
383383
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
384384
return unit(f), nil
385385
},
@@ -392,7 +392,7 @@ func addAddressLookup() {
392392
Example: "13645",
393393
Output: "string",
394394
Aliases: []string{"zip code", "postal code", "mail code", "delivery code"},
395-
Keywords: []string{"zip", "postal", "postcode", "code", "address", "sorting", "geographic", "area", "numerical", "mailing", "delivery", "zone", "district", "region", "identifier"},
395+
Keywords: []string{"postal", "postcode", "code", "address", "sorting", "geographic", "area", "numerical", "mailing", "delivery", "zone", "district", "region", "identifier"},
396396
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
397397
return zip(f), nil
398398
},
@@ -405,7 +405,7 @@ func addAddressLookup() {
405405
Example: "-73.534056",
406406
Output: "float",
407407
Aliases: []string{"lat coordinate", "north-south coordinate", "geographic latitude", "earth latitude", "position latitude"},
408-
Keywords: []string{"latitude", "lat", "coordinate", "north-south", "degrees", "gps", "wgs84", "geodesy", "parallel", "equator", "pole"},
408+
Keywords: []string{"lat", "coordinate", "north-south", "degrees", "gps", "wgs84", "geodesy", "parallel", "equator", "pole"},
409409
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
410410
return latitude(f), nil
411411
},
@@ -418,7 +418,7 @@ func addAddressLookup() {
418418
Example: "22.921026",
419419
Output: "float",
420420
Aliases: []string{"latitude bounds", "lat range", "north-south range", "geographic bounds", "coordinate range"},
421-
Keywords: []string{"latitude", "lat", "range", "min", "max", "degrees", "gps", "wgs84", "bounds", "interval"},
421+
Keywords: []string{"lat", "range", "min", "max", "degrees", "gps", "wgs84", "bounds", "interval"},
422422
Params: []Param{
423423
{Field: "min", Display: "Min", Type: "float", Default: "0", Description: "Minimum range"},
424424
{Field: "max", Display: "Max", Type: "float", Default: "90", Description: "Maximum range"},
@@ -443,7 +443,7 @@ func addAddressLookup() {
443443
Example: "-147.068112",
444444
Output: "float",
445445
Aliases: []string{"long coordinate", "east-west coordinate", "geographic longitude", "earth longitude", "position longitude"},
446-
Keywords: []string{"longitude", "lon", "coordinate", "east-west", "degrees", "gps", "wgs84", "geodesy", "meridian", "idl"},
446+
Keywords: []string{"lon", "coordinate", "east-west", "degrees", "gps", "wgs84", "geodesy", "meridian", "idl"},
447447
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
448448
return longitude(f), nil
449449
},

animal.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func addAnimalLookup() {
119119
Example: "elk",
120120
Output: "string",
121121
Aliases: []string{"wild animal", "living creature", "wildlife species", "animal species", "creature name"},
122-
Keywords: []string{"animal", "creature", "living", "move", "eat", "environment", "wildlife", "species", "fauna", "beast", "organism", "vertebrate", "invertebrate"},
122+
Keywords: []string{"creature", "living", "move", "eat", "environment", "wildlife", "species", "fauna", "beast", "organism", "vertebrate", "invertebrate"},
123123
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
124124
return animal(f), nil
125125
},
@@ -158,7 +158,7 @@ func addAnimalLookup() {
158158
Example: "Chausie",
159159
Output: "string",
160160
Aliases: []string{"cat breed", "feline breed", "domestic cat", "pet cat", "kitty breed"},
161-
Keywords: []string{"cat", "breed", "feline", "pet", "domestic", "various", "persian", "siamese", "maine", "coon", "tabby", "calico", "tuxedo", "kitten"},
161+
Keywords: []string{"breed", "feline", "pet", "domestic", "various", "persian", "siamese", "maine", "coon", "tabby", "calico", "tuxedo", "kitten"},
162162
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
163163
return cat(f), nil
164164
},
@@ -171,7 +171,7 @@ func addAnimalLookup() {
171171
Example: "Norwich Terrier",
172172
Output: "string",
173173
Aliases: []string{"dog breed", "canine breed", "domestic dog", "pet dog", "fido breed"},
174-
Keywords: []string{"dog", "breed", "canine", "pet", "domestic", "various", "labrador", "retriever", "terrier", "shepherd", "bulldog", "poodle", "puppy", "hound"},
174+
Keywords: []string{"breed", "canine", "pet", "domestic", "various", "labrador", "retriever", "terrier", "shepherd", "bulldog", "poodle", "puppy", "hound"},
175175
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
176176
return dog(f), nil
177177
},
@@ -184,7 +184,7 @@ func addAnimalLookup() {
184184
Example: "goose",
185185
Output: "string",
186186
Aliases: []string{"bird species", "avian species", "feathered animal", "winged creature", "bird type"},
187-
Keywords: []string{"bird", "species", "avian", "feather", "wing", "distinct", "sparrow", "eagle", "hawk", "owl", "duck", "goose", "parrot", "finch", "robin"},
187+
Keywords: []string{"species", "avian", "feather", "wing", "distinct", "sparrow", "eagle", "hawk", "owl", "duck", "goose", "parrot", "finch", "robin"},
188188
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
189189
return bird(f), nil
190190
},

auth.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func addAuthLookup() {
150150
"user handle",
151151
},
152152
Keywords: []string{
153-
"username", "login", "handle", "userid", "screenname",
153+
"login", "handle", "userid", "screenname",
154154
"user", "account", "credential", "signin", "alias", "profile", "uid",
155155
},
156156
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
@@ -172,7 +172,7 @@ func addAuthLookup() {
172172
"auth secret",
173173
},
174174
Keywords: []string{
175-
"password", "passphrase", "pwd", "secret",
175+
"passphrase", "pwd", "secret",
176176
"credential", "authentication", "auth",
177177
"security", "signin", "login",
178178
"access", "key", "token", "hash", "encryption",

book.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func addBookLookup() {
4949
Output: "map[string]string",
5050
ContentType: "application/json",
5151
Aliases: []string{"printed", "pages", "bound", "subjects", "stories", "literature", "text"},
52-
Keywords: []string{"book", "written", "work", "consisting", "anna", "karenina", "toni", "morrison", "thriller"},
52+
Keywords: []string{"written", "work", "consisting", "anna", "karenina", "toni", "morrison", "thriller"},
5353
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
5454
return book(f), nil
5555
},

car.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func addCarLookup() {
8585
Output: "map[string]any",
8686
ContentType: "application/json",
8787
Aliases: []string{"vehicle", "automobile", "transportation", "motor", "wheeled"},
88-
Keywords: []string{"car", "used", "passenger", "mini", "gasoline", "automatic", "fiat", "freestyle", "fwd"},
88+
Keywords: []string{"used", "passenger", "mini", "gasoline", "automatic", "fiat", "freestyle", "fwd"},
8989
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
9090
return car(f), nil
9191
},

color.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func addColorLookup() {
6464
Example: "MediumOrchid",
6565
Output: "string",
6666
Aliases: []string{"color name", "hue name", "visual color", "shade name", "color label"},
67-
Keywords: []string{"color", "red", "blue", "green", "yellow", "purple", "orange", "pink", "hue", "chroma", "shade", "tone", "css", "name"},
67+
Keywords: []string{"hue", "chroma", "shade", "tone", "css", "name", "visual", "appearance", "pigment", "spectrum", "palette", "tint", "saturation", "brightness", "rgb", "hex"},
6868
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
6969
return color(f), nil
7070
},

company.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func addCompanyLookup() {
125125
"legal entity",
126126
},
127127
Keywords: []string{
128-
"company", "business", "organization", "corporation",
128+
"business", "organization", "corporation",
129129
"enterprise", "firm", "entity", "brand",
130130
"employer", "vendor", "partner",
131131
},
@@ -172,7 +172,7 @@ func addCompanyLookup() {
172172
"consulting speak",
173173
},
174174
Keywords: []string{
175-
"bs", "jargon", "buzzwords", "synergy", "leverage",
175+
"jargon", "buzzwords", "synergy", "leverage",
176176
"disrupt", "innovate", "scalable", "agile", "optimize",
177177
"pipeline", "roadmap", "vision", "strategy", "corporate",
178178
},
@@ -195,7 +195,7 @@ func addCompanyLookup() {
195195
"about text",
196196
},
197197
Keywords: []string{
198-
"blurb", "summary", "overview", "description",
198+
"summary", "overview", "description",
199199
"company", "profile", "about", "intro",
200200
"purpose", "mission", "vision", "statement",
201201
"services", "products", "offerings",
@@ -219,7 +219,7 @@ func addCompanyLookup() {
219219
"marketing phrase",
220220
},
221221
Keywords: []string{
222-
"buzzword", "jargon", "hype", "trend", "phrase",
222+
"jargon", "hype", "trend", "phrase",
223223
"term", "corporate", "management", "marketing",
224224
"innovation", "paradigm", "disruptive", "visionary",
225225
"fashionable", "impressive",
@@ -252,7 +252,7 @@ func addCompanyLookup() {
252252
"occupation job",
253253
},
254254
Keywords: []string{
255-
"job", "role", "position", "employment", "work",
255+
"role", "position", "employment", "work",
256256
"career", "profession", "title",
257257
"responsibilities", "tasks", "duties",
258258
"staff", "employee", "hiring", "positioning",
@@ -347,7 +347,7 @@ func addCompanyLookup() {
347347
"advertising slogan",
348348
},
349349
Keywords: []string{
350-
"slogan", "tagline", "motto", "catchphrase",
350+
"tagline", "motto", "catchphrase",
351351
"brand", "company", "marketing", "advertising",
352352
"identity", "values", "mission", "vision",
353353
"strapline", "promo", "campaign",

csv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func addFileCSVLookup() {
138138
"comma separated", "csv file", "data table", "flat file", "spreadsheet format", "tabular data",
139139
},
140140
Keywords: []string{
141-
"csv", "comma", "separated", "values", "format", "data", "spreadsheet", "entries", "rows", "columns", "dataset", "records",
141+
"comma", "separated", "values", "format", "data", "spreadsheet", "entries", "rows", "columns", "dataset", "records",
142142
},
143143
Params: []Param{
144144
{Field: "delimiter", Display: "Delimiter", Type: "string", Default: ",", Description: "Separator in between row values"},

datetime.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ func addDateTimeLookup() {
222222
"date string", "calendar date", "datetime", "timestamp", "chronological reference",
223223
},
224224
Keywords: []string{
225-
"date", "time", "day", "month", "year", "format", "rfc3339", "iso8601", "utc",
225+
"time", "day", "month", "year", "format", "rfc3339", "iso8601", "utc",
226226
},
227227
Params: []Param{
228228
{
@@ -375,7 +375,7 @@ func addDateTimeLookup() {
375375
"nano", "ns value", "tiny time", "ultra precision", "fractional second",
376376
},
377377
Keywords: []string{
378-
"nanosecond", "time", "unit", "second", "billionth", "ultra", "high", "resolution",
378+
"time", "unit", "second", "billionth", "ultra", "high", "resolution",
379379
},
380380
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) { return nanoSecond(f), nil },
381381
})
@@ -390,7 +390,7 @@ func addDateTimeLookup() {
390390
"second value", "sec unit", "time second", "sixtieth minute", "time slice",
391391
},
392392
Keywords: []string{
393-
"second", "time", "unit", "minute", "sixtieth", "duration", "interval", "sixty",
393+
"time", "unit", "minute", "sixtieth", "duration", "interval", "sixty",
394394
},
395395
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) { return second(f), nil },
396396
})
@@ -405,7 +405,7 @@ func addDateTimeLookup() {
405405
"minute value", "time minute", "sixty seconds", "short period", "clock minute",
406406
},
407407
Keywords: []string{
408-
"minute", "time", "unit", "60", "seconds", "duration", "interval", "sixtieth", "hour",
408+
"time", "unit", "60", "seconds", "duration", "interval", "sixtieth", "hour",
409409
},
410410
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) { return minute(f), nil },
411411
})
@@ -420,7 +420,7 @@ func addDateTimeLookup() {
420420
"hour value", "time hour", "sixty minutes", "clock hour", "time period",
421421
},
422422
Keywords: []string{
423-
"hour", "time", "unit", "60", "minutes", "duration", "interval", "day",
423+
"time", "unit", "60", "minutes", "duration", "interval", "day",
424424
},
425425
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) { return hour(f), nil },
426426
})
@@ -435,7 +435,7 @@ func addDateTimeLookup() {
435435
"calendar day", "day value", "earth rotation", "daily unit", "full day",
436436
},
437437
Keywords: []string{
438-
"day", "time", "unit", "axis", "24-hour", "calendar", "sunrise", "sunset",
438+
"time", "unit", "axis", "24-hour", "calendar", "sunrise", "sunset",
439439
},
440440
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) { return day(f), nil },
441441
})
@@ -450,7 +450,7 @@ func addDateTimeLookup() {
450450
"weekday name", "business day", "work day", "monday to friday", "weekday label",
451451
},
452452
Keywords: []string{
453-
"weekday", "day", "week", "workday", "business", "calendar", "monday", "tuesday", "wednesday", "thursday", "friday",
453+
"day", "week", "workday", "business", "calendar", "monday", "tuesday", "wednesday", "thursday", "friday",
454454
},
455455
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) { return weekDay(f), nil },
456456
})
@@ -465,7 +465,7 @@ func addDateTimeLookup() {
465465
"calendar month", "month value", "monthly unit", "date month", "time month",
466466
},
467467
Keywords: []string{
468-
"month", "year", "time", "30", "31", "days", "calendar", "period",
468+
"year", "time", "30", "31", "days", "calendar", "period",
469469
},
470470
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) { return month(f), nil },
471471
})
@@ -495,7 +495,7 @@ func addDateTimeLookup() {
495495
"calendar year", "annual period", "orbit year", "year value", "fiscal year",
496496
},
497497
Keywords: []string{
498-
"year", "time", "365", "days", "leap", "calendar", "decade", "century",
498+
"time", "365", "days", "leap", "calendar", "decade", "century",
499499
},
500500
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) { return year(f), nil },
501501
})
@@ -510,7 +510,7 @@ func addDateTimeLookup() {
510510
"time zone", "tz name", "standard time zone", "geographic zone", "regional time",
511511
},
512512
Keywords: []string{
513-
"timezone", "time", "earth", "utc", "gmt", "pst", "est", "cst", "mst", "dst",
513+
"time", "earth", "utc", "gmt", "pst", "est", "cst", "mst", "dst",
514514
},
515515
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) { return timeZone(f), nil },
516516
})
@@ -525,7 +525,7 @@ func addDateTimeLookup() {
525525
"timezone abbr", "tz short code", "abbreviated zone", "short tz name", "zone abbreviation",
526526
},
527527
Keywords: []string{
528-
"timezone", "time", "3-letter", "kst", "pst", "est", "gmt", "utc",
528+
"time", "3-letter", "kst", "pst", "est", "gmt", "utc",
529529
},
530530
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) { return timeZoneAbv(f), nil },
531531
})
@@ -585,7 +585,7 @@ func addDateTimeLookup() {
585585
"time string", "clock time", "time format", "time value", "hour minute second",
586586
},
587587
Keywords: []string{
588-
"time", "clock", "hour", "minute", "second", "format", "24-hour", "12-hour", "am", "pm",
588+
"clock", "hour", "minute", "second", "format", "24-hour", "12-hour", "am", "pm",
589589
},
590590
Params: []Param{
591591
{

emoji.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ func addEmojiLookup() {
239239
"digital expression",
240240
},
241241
Keywords: []string{
242-
"emoji", "symbol", "text", "message", "online", "chats", "ideas", "feelings", "digital", "reaction",
242+
"symbol", "text", "message", "online", "chats", "ideas", "feelings", "digital", "reaction",
243243
},
244244
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
245245
return emoji(f), nil

0 commit comments

Comments
 (0)