major-words 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +58 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +143 -0
- package/dist/index.modern.js +2 -0
- package/dist/index.modern.js.map +1 -0
- package/dist/index.module.js +2 -0
- package/dist/index.module.js.map +1 -0
- package/dist/index.umd.js +2 -0
- package/dist/index.umd.js.map +1 -0
- package/package.json +39 -0
- package/src/data/indices/adjectives.js +2 -0
- package/src/data/indices/arms.js +2 -0
- package/src/data/indices/attires.js +2 -0
- package/src/data/indices/brands.js +2 -0
- package/src/data/indices/cars.js +2 -0
- package/src/data/indices/cities.js +2 -0
- package/src/data/indices/cold-war.js +2 -0
- package/src/data/indices/common-nouns.js +3 -0
- package/src/data/indices/drinks.js +2 -0
- package/src/data/indices/drugs.js +2 -0
- package/src/data/indices/establishments.js +2 -0
- package/src/data/indices/loanwords.js +2 -0
- package/src/data/indices/locations.js +3 -0
- package/src/data/indices/made-up.js +2 -0
- package/src/data/indices/media-references.js +2 -0
- package/src/data/indices/music.js +2 -0
- package/src/data/indices/musicians.js +2 -0
- package/src/data/indices/neighborhoods.js +2 -0
- package/src/data/indices/new-york.js +2 -0
- package/src/data/indices/nicknames.js +2 -0
- package/src/data/indices/people.js +2 -0
- package/src/data/indices/plants.js +2 -0
- package/src/data/indices/restaurants.js +2 -0
- package/src/data/indices/science.js +2 -0
- package/src/data/indices/slangs.js +2 -0
- package/src/data/indices/spiritual.js +2 -0
- package/src/data/indices/streets.js +2 -0
- package/src/data/indices/towns.js +2 -0
- package/src/data/indices/vehicles.js +2 -0
- package/src/data/indices/verbs.js +2 -0
- package/src/data/indices/weapons.js +2 -0
- package/src/data/letter-index.js +23 -0
- package/src/data/list.js +152 -0
- package/src/index.js +225 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Markus Midtlien Sigurdsen
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# major-words
|
|
2
|
+
|
|
3
|
+
A catalog of Steely Dan's bizarro words, names, places and phrases.
|
|
4
|
+
|
|
5
|
+
All words are retrieved from
|
|
6
|
+
<a href='https://steelydandictionary.com/' target='_blank' rel='noopener noreferrer'>The Steely Dan Dictionary</a>.
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
|
|
10
|
+
Import `MajorWords`:
|
|
11
|
+
```javascript
|
|
12
|
+
import MajorWords from "major-words"
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### All words
|
|
16
|
+
```javascript
|
|
17
|
+
MajorWords.all // => ["A-frame", "Alsatian wine", "Altamira", ...]
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Words starting with letter
|
|
21
|
+
```javascript
|
|
22
|
+
MajorWords.startingWith("s") // => ["Santa Ana winds", "Savoy sides", "Scarsdale", ...]
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Categories
|
|
26
|
+
```javascript
|
|
27
|
+
MajorWords.adjectives // => ["baion", "lachrymose", "Rabelaisian", ...]
|
|
28
|
+
MajorWords.arms // => ["battle apple", "Castle Bravo", "Cobra gunship", ...]
|
|
29
|
+
MajorWords.attires // => ["capris", "cheaters", "derby hat", ...]
|
|
30
|
+
MajorWords.brands // => ["Ambush", "Brut", "Chesterfield Kings", ...]
|
|
31
|
+
MajorWords.cars // => ["Aries", "Audi TT", "Blazer", ...]
|
|
32
|
+
MajorWords.cities // => ["Bakersfield", "Camarillo", "Elsinore", ...]
|
|
33
|
+
MajorWords.coldWar // => ["Castle Bravo", "I.G.Y.", "New Frontier"]
|
|
34
|
+
MajorWords.drinks // => ["Alsatian wine", "black cow", "Cuervo Gold", ...]
|
|
35
|
+
MajorWords.drugs // => ["Alsatian wine", "Chesterfield Kings", "chiba-chiba", ...]
|
|
36
|
+
MajorWords.establishments // => ["Dean & DeLuca", "Eden Rock", "IHOP", ...]
|
|
37
|
+
MajorWords.loanwords // => ["barrio", "bivouac", "bodhisattva", ...]
|
|
38
|
+
MajorWords.locations // => ["Altamira", "Annandale", "Arcturus", ...]
|
|
39
|
+
MajorWords.madeUp // => ["battle apple", "Custerdome", "pin shot"]
|
|
40
|
+
MajorWords.mediaReferences // => ["Kiss Me Deadly", "Lost Wages", "Monkey Time", ...]
|
|
41
|
+
MajorWords.music // => ["baion", "'54 Strat", "merengue", ...]
|
|
42
|
+
MajorWords.musicians // => ["Arlen", "Brubeck", "Cathy Berberian", ...]
|
|
43
|
+
MajorWords.neighborhoods // => ["Annandale", "Barrytown", "Brentwood", ...]
|
|
44
|
+
MajorWords.newYork // => ["Annandale", "Barrytown", "Bleecker Street", ...]
|
|
45
|
+
MajorWords.nicknames // => ["Crimson Tide", "Jungle Jim", "TJ"]
|
|
46
|
+
MajorWords.nouns // => ["A-frame", "amen corner", "automat", ...]
|
|
47
|
+
MajorWords.people // => ["Arlen", "Brubeck", "Cathy Berberian", ...]
|
|
48
|
+
MajorWords.plants // => ["banyan", "oleander", "prickly pear"]
|
|
49
|
+
MajorWords.restaurants // => ["Dean & DeLuca", "IHOP", "Mr. Chow", ...]
|
|
50
|
+
MajorWords.science // => ["I.G.Y.", "Santa Ana winds", "zero crossing"]
|
|
51
|
+
MajorWords.slangs // => ["chase the dragon", "chiba-chiba", "g'wine", ...]
|
|
52
|
+
MajorWords.spiritual // => ["amen corner", "bodhisattva", "Erzulie", ...]
|
|
53
|
+
MajorWords.streets // => ["Bleecker Street", "Eastern Parkway", "Jane Street", ...]
|
|
54
|
+
MajorWords.towns // => ["Culver City", "East Paterson", "Medicine Park", ...]
|
|
55
|
+
MajorWords.vehicles // => ["Andrea Doria", "Aries", "Audi TT", ...]
|
|
56
|
+
MajorWords.verbs // => ["chase the dragon", "g'wine", "gaslighting", ...]
|
|
57
|
+
MajorWords.weapons // => ["battle apple", "Cobra gunship", "Luger", ...]
|
|
58
|
+
```
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function e(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var t=0;function r(e){return"__private_"+t+++"_"+e}function n(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var i=["A-frame","Alsatian wine","Altamira","Ambush","amen corner","Andrea Doria","Annandale","Arcturus","Aries","Arlen","Audi TT","automat","baion","Bakersfield","banyan","barrio","Barrytown","battle apple","Biscayne Bay","bivouac","black cow","Blazer","Bleecker Street","bodhisattva","bon marché","Brentwood","Brubeck","Brut","Camarillo","capris","Castle Bravo","catbird seat","Cathy Berberian","chase the dragon","cheaters","Chesterfield Kings","chiba-chiba","city of St. John","Cobra gunship","corncrib","Crimson Tide","Cuervo Gold","Culver City","Custerdome","cutouts","Dean & DeLuca","derby hat","dime dancing","Doctor Wu","Eames chair","East Paterson","Eastern Parkway","Eden Rock","Eldorado","Elsinore","Erzulie","fez","'54 Strat","Florida room","French twist","g'wine","gas centrifuge","gaslighting","gaucho","Gladstone bag","Gramercy Park","grok","Guadalajara","Hackensack","Haitian divorce","Hello Kitty","I.G.Y.","IHOP","ikat","inside straight","Jackson","Jane Street","Jill St. John","Jungle Jim","kirschwasser","Kiss Me Deadly","KLH","Kundalini","lachrymose","Lark","Lhasa","Lincoln Town Car","Little Eva","Lost Wages","Luger","masissi","Medicine Park","merengue","mini-Glock","Mizar","Monkey Time","Moon Pie","moray eel","Mount Savage","Mr. Chow","Mr. Parker","muscatel","Muswellbrook","New Frontier","New Hyde Park","Nino's","oleander","package store","Packard","panatela","Philly Dog","piaster","pin shot","prickly pear","Rabelaisian","Radio City","Raelettes","Red Hook","Red Hots","retsina","rinkydink","Roppongi","roulade","Rudy's","Santa Ana winds","Savoy sides","Scarsdale","Sheridan Square","skeevy","smoker","squonk","Stanyan Street","Steely Dan","Strand","Sunset","Sutton Place","Tanqueray","Tenderloin","TJ","Tompkins Square","tracer rounds","trading fours","Tuesday Weld","William and Mary","wing chair","wingding","Wolverine","zero crossing","Ziegfield","zombie"],a={a:0,b:12,c:28,d:45,e:49,f:56,g:60,h:68,i:71,j:75,k:79,l:83,m:90,n:103,o:106,p:107,r:114,s:124,t:136,w:143,z:147},o=[12,83,114,120,128],s=[17,30,38,89,93,140],u=[29,34,46,56,59],c=[3,27,35,41,45,70,72,81,96,108,118,125,136],l=[8,10,21,53,84,86,108],y=[13,28,54,67,68,85],g=[30,71,103],h=[0,4,11,14,15,17,19,20,23,24,29,31,34,36,38,39,44,46,47,49,56,58,59,61,63,64,73,74,79,82,89,92,93,97,101,106,107,109,111,112,113,119,122,129,130,140,144,145,147,149],d=[1,20,41,79,101,119,136,149],f=[1,35,36,41,79,101,109,119,136,149],k=[45,52,72,99,105,115,123,133,143],m=[15,19,23,24,63,79,82,90],b=[2,6,7,13,16,18,22,25,28,37,42,50,51,54,65,67,68,76,85,91,94,98,102,104,117,121,126,127,131,134,135,137,138,139],p=[17,43,112],v=[80,88,95,132],w=[12,57,92,110,122,141],S=[9,26,32,87,100,116],P=[6,16,25,135,137],C=[6,16,22,51,65,76,104,126,127,135,137,139],A=[40,78,138],T=[9,26,32,48,77,78,87,100,142,148],B=[14,106,113],E=[45,72,99,105,123],M=[71,124,147],j=[33,36,60,66,69,75,90,128,129,145],L=[4,23,55,82],R=[22,51,76,131,134],z=[42,50,91,98,102,117,126],H=[5,8,10,21,53,84,86,108,146],J=[35,60,62,66,141],D=[17,38,89,93],O=/*#__PURE__*/r("wordsAtIndices"),W=/*#__PURE__*/function(){function t(){}return t.startingWith=function(e){if(1!==e.length||!e.match(/[a-z]/i))throw new Error("Argument must be a single letter");e=e.toLowerCase();var t=a[e];if(void 0===t)return[];var r=Object.keys(a),n=r.at(r.indexOf(e)+1);return i.slice(t,a[n])},r=t,(W=[{key:"all",get:function(){return i}},{key:"adjectives",get:function(){return e(this,O)[O](o)}},{key:"arms",get:function(){return e(this,O)[O](s)}},{key:"attires",get:function(){return e(this,O)[O](u)}},{key:"brands",get:function(){return e(this,O)[O](c)}},{key:"cars",get:function(){return e(this,O)[O](l)}},{key:"cities",get:function(){return e(this,O)[O](y)}},{key:"coldWar",get:function(){return e(this,O)[O](g)}},{key:"drinks",get:function(){return e(this,O)[O](d)}},{key:"drugs",get:function(){return e(this,O)[O](f)}},{key:"establishments",get:function(){return e(this,O)[O](k)}},{key:"loanwords",get:function(){return e(this,O)[O](m)}},{key:"locations",get:function(){return e(this,O)[O](b)}},{key:"madeUp",get:function(){return e(this,O)[O](p)}},{key:"mediaReferences",get:function(){return e(this,O)[O](v)}},{key:"music",get:function(){return e(this,O)[O](w)}},{key:"musicians",get:function(){return e(this,O)[O](S)}},{key:"neighborhoods",get:function(){return e(this,O)[O](P)}},{key:"newYork",get:function(){return e(this,O)[O](C)}},{key:"nicknames",get:function(){return e(this,O)[O](A)}},{key:"nouns",get:function(){return e(this,O)[O](h)}},{key:"people",get:function(){return e(this,O)[O](T)}},{key:"plants",get:function(){return e(this,O)[O](B)}},{key:"restaurants",get:function(){return e(this,O)[O](E)}},{key:"science",get:function(){return e(this,O)[O](M)}},{key:"slangs",get:function(){return e(this,O)[O](j)}},{key:"spiritual",get:function(){return e(this,O)[O](L)}},{key:"streets",get:function(){return e(this,O)[O](R)}},{key:"towns",get:function(){return e(this,O)[O](z)}},{key:"vehicles",get:function(){return e(this,O)[O](H)}},{key:"verbs",get:function(){return e(this,O)[O](J)}},{key:"weapons",get:function(){return e(this,O)[O](D)}}])&&function(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}(r,W),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,W}();Object.defineProperty(W,O,{value:function(e){return e.map(function(e){return i[e]})}}),module.exports=W;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/data/list.js","../src/data/letter-index.js","../src/data/indices/adjectives.js","../src/data/indices/arms.js","../src/data/indices/attires.js","../src/data/indices/brands.js","../src/data/indices/cars.js","../src/data/indices/cities.js","../src/data/indices/cold-war.js","../src/data/indices/common-nouns.js","../src/data/indices/drinks.js","../src/data/indices/drugs.js","../src/data/indices/establishments.js","../src/data/indices/loanwords.js","../src/data/indices/locations.js","../src/data/indices/made-up.js","../src/data/indices/media-references.js","../src/data/indices/music.js","../src/data/indices/musicians.js","../src/data/indices/neighborhoods.js","../src/data/indices/new-york.js","../src/data/indices/nicknames.js","../src/data/indices/people.js","../src/data/indices/plants.js","../src/data/indices/restaurants.js","../src/data/indices/science.js","../src/data/indices/slangs.js","../src/data/indices/spiritual.js","../src/data/indices/streets.js","../src/data/indices/towns.js","../src/data/indices/vehicles.js","../src/data/indices/verbs.js","../src/data/indices/weapons.js","../src/index.js"],"sourcesContent":["export default [\n \"A-frame\", // common nouns\n \"Alsatian wine\", // drinks, drugs\n \"Altamira\", // locations\n \"Ambush\", // brands\n \"amen corner\", // common nouns, spiritual\n \"Andrea Doria\", // vehicles\n \"Annandale\", // locations, neighborhoods, New York\n \"Arcturus\", // locations\n \"Aries\", // cars, vehicles\n \"Arlen\", // musicians, people\n \"Audi TT\", // cars, vehicles\n \"automat\", // common nouns\n \"baion\", // adjectives, music\n \"Bakersfield\", // cities, locations\n \"banyan\", // common nouns, plants\n \"barrio\", // common nouns, loanwords\n \"Barrytown\", // locations, neighborhoods, New York\n \"battle apple\", // arms, common nouns, made-up, weapons\n \"Biscayne Bay\", // locations\n \"bivouac\", // common nouns, loanwords\n \"black cow\", // common nouns, drinks\n \"Blazer\", // cars, vehicles\n \"Bleecker Street\", // locations, New York, streets\n \"bodhisattva\", // common nouns, loanwords, spiritual\n \"bon marché\", // common nouns, loanwords\n \"Brentwood\", // locations, neighborhoods\n \"Brubeck\", // musicians, people\n \"Brut\", // brands\n \"Camarillo\", // cities, locations\n \"capris\", // attires, common nouns\n \"Castle Bravo\", // arms, Cold War\n \"catbird seat\", // common nouns\n \"Cathy Berberian\", // musicians, people\n \"chase the dragon\", // slangs, verbs\n \"cheaters\", // attires, common nouns\n \"Chesterfield Kings\", // brands, drugs\n \"chiba-chiba\", // common nouns, drugs, slangs\n \"city of St. John\", // locations\n \"Cobra gunship\", // arms, common nouns, weapons\n \"corncrib\", // common nouns\n \"Crimson Tide\", // nicknames\n \"Cuervo Gold\", // brands, drinks, drugs\n \"Culver City\", // locations, towns\n \"Custerdome\", // made-up\n \"cutouts\", // common nouns\n \"Dean & DeLuca\", // brands, establishments, restaurants\n \"derby hat\", // attires, common nouns\n \"dime dancing\", // common nouns\n \"Doctor Wu\", // people\n \"Eames chair\", // common nouns\n \"East Paterson\", // locations, towns\n \"Eastern Parkway\", // locations, New York, streets\n \"Eden Rock\", // establishments\n \"Eldorado\", // cars, vehicles\n \"Elsinore\", // cities, locations\n \"Erzulie\", // spiritual\n \"fez\", // attires, common nouns\n \"'54 Strat\", // music\n \"Florida room\", // common nouns\n \"French twist\", // attires, common nouns\n \"g'wine\", // slangs, verbs\n \"gas centrifuge\", // common nouns\n \"gaslighting\", // verbs\n \"gaucho\", // common nouns, loanwords\n \"Gladstone bag\", // common nouns\n \"Gramercy Park\", // locations, New York\n \"grok\", // slangs, verbs\n \"Guadalajara\", // cities, locations\n \"Hackensack\", // cities, locations\n \"Haitian divorce\", // slangs\n \"Hello Kitty\", // brands\n \"I.G.Y.\", // Cold War, science\n \"IHOP\", // brands, establishments, restaurants\n \"ikat\", // common nouns\n \"inside straight\", // common nouns\n \"Jackson\", // slangs\n \"Jane Street\", // locations, New York, streets\n \"Jill St. John\", // people\n \"Jungle Jim\", // nicknames, people\n \"kirschwasser\", // common nouns, drinks, drugs, loanwords\n \"Kiss Me Deadly\", // media references\n \"KLH\", // brands\n \"Kundalini\", // common nouns, loanwords, spiritual\n \"lachrymose\", // adjectives\n \"Lark\", // cars, vehicles\n \"Lhasa\", // cities, locations\n \"Lincoln Town Car\", // cars, vehicles\n \"Little Eva\", // musicians, people\n \"Lost Wages\", // media references\n \"Luger\", // arms, common nouns, weapons\n \"masissi\", // common nouns, loanwords, slangs\n \"Medicine Park\", // locations, towns\n \"merengue\", // common nouns, music\n \"mini-Glock\", // arms, common nouns, weapons\n \"Mizar\", // locations\n \"Monkey Time\", // media references\n \"Moon Pie\", // brands\n \"moray eel\", // common nouns\n \"Mount Savage\", // locations, towns\n \"Mr. Chow\", // establishments, restaurants\n \"Mr. Parker\", // musicians, people\n \"muscatel\", // common nouns, drinks, drugs\n \"Muswellbrook\", // locations, towns\n \"New Frontier\", // Cold War\n \"New Hyde Park\", // locations, New York\n \"Nino's\", // establishments, restaurants\n \"oleander\", // common nouns, plants\n \"package store\", // common nouns\n \"Packard\", // brands, cars, vehicles\n \"panatela\", // common nouns, drugs\n \"Philly Dog\", // music\n \"piaster\", // common nouns\n \"pin shot\", // common nouns, made-up\n \"prickly pear\", // common nouns, plants\n \"Rabelaisian\", // adjectives\n \"Radio City\", // establishments\n \"Raelettes\", // musicians\n \"Red Hook\", // locations, towns\n \"Red Hots\", // brands\n \"retsina\", // common nouns, drinks, drugs\n \"rinkydink\", // adjectives\n \"Roppongi\", // locations\n \"roulade\", // common nouns, music\n \"Rudy's\", // establishments, restaurants\n \"Santa Ana winds\", // science\n \"Savoy sides\", // brands\n \"Scarsdale\", // locations, New York, towns\n \"Sheridan Square\", // locations, New York\n \"skeevy\", // adjectives, slangs\n \"smoker\", // common nouns, slangs\n \"squonk\", // common nouns\n \"Stanyan Street\", // locations, streets\n \"Steely Dan\", // media references\n \"Strand\", // establishments\n \"Sunset\", // locations, streets\n \"Sutton Place\", // locations, neighborhoods, New York\n \"Tanqueray\", // brands, drinks, drugs\n \"Tenderloin\", // locations, neighborhoods, New York\n \"TJ\", // locations, nicknames\n \"Tompkins Square\", // locations, New York\n \"tracer rounds\", // arms, common nouns\n \"trading fours\", // music, verbs\n \"Tuesday Weld\", // people\n \"William and Mary\", // establishments\n \"wing chair\", // common nouns\n \"wingding\", // common nouns, slangs\n \"Wolverine\", // vehicles\n \"zero crossing\", // common nouns, science\n \"Ziegfield\", // people\n \"zombie\" // common nouns, drinks, drugs\n]\n","export default {\n \"a\": 0,\n \"b\": 12,\n \"c\": 28,\n \"d\": 45,\n \"e\": 49,\n \"f\": 56,\n \"g\": 60,\n \"h\": 68,\n \"i\": 71,\n \"j\": 75,\n \"k\": 79,\n \"l\": 83,\n \"m\": 90,\n \"n\": 103,\n \"o\": 106,\n \"p\": 107,\n \"r\": 114,\n \"s\": 124,\n \"t\": 136,\n \"w\": 143,\n \"z\": 147\n}\n","export default\n[12, 83, 114, 120, 128]\n","export default\n[17, 30, 38, 89, 93, 140]\n","export default\n[29, 34, 46, 56, 59]\n","export default\n[3, 27, 35, 41, 45, 70, 72, 81, 96, 108, 118, 125, 136]\n","export default\n[8, 10, 21, 53, 84, 86, 108]\n","export default\n[13, 28, 54, 67, 68, 85]\n","export default\n[30, 71, 103]\n","export default\n[0, 4, 11, 14, 15, 17, 19, 20, 23, 24, 29, 31, 34, 36, 38, 39, 44, 46, 47, 49, 56, 58, 59, 61, 63, 64, 73, 74, 79, 82,\n89, 92, 93, 97, 101, 106, 107, 109, 111, 112, 113, 119, 122, 129, 130, 140, 144, 145, 147, 149]\n","export default\n[1, 20, 41, 79, 101, 119, 136, 149]\n","export default\n[1, 35, 36, 41, 79, 101, 109, 119, 136, 149]\n","export default\n[45, 52, 72, 99, 105, 115, 123, 133, 143]\n","export default\n[15, 19, 23, 24, 63, 79, 82, 90]\n","export default\n[2, 6, 7, 13, 16, 18, 22, 25, 28, 37, 42, 50, 51, 54, 65, 67, 68, 76, 85, 91, 94, 98, 102, 104, 117, 121, 126, 127,\n131, 134, 135, 137, 138, 139]\n","export default\n[17, 43, 112]\n","export default\n[80, 88, 95, 132]\n","export default\n[12, 57, 92, 110, 122, 141]\n","export default\n[9, 26, 32, 87, 100, 116]\n","export default\n[6, 16, 25, 135, 137]\n","export default\n[6, 16, 22, 51, 65, 76, 104, 126, 127, 135, 137, 139]\n","export default\n[40, 78, 138]\n","export default\n[9, 26, 32, 48, 77, 78, 87, 100, 142, 148]\n","export default\n[14, 106, 113]\n","export default\n[45, 72, 99, 105, 123]\n","export default\n[71, 124, 147]\n","export default\n[33, 36, 60, 66, 69, 75, 90, 128, 129, 145]\n","export default\n[4, 23, 55, 82]\n","export default\n[22, 51, 76, 131, 134]\n","export default\n[42, 50, 91, 98, 102, 117, 126]\n","export default\n[5, 8, 10, 21, 53, 84, 86, 108, 146]\n","export default\n[35, 60, 62, 66, 141]\n","export default\n[17, 38, 89, 93]\n","import list from \"./data/list.js\";\nimport letterIndex from \"./data/letter-index.js\";\nimport adjectivesIndices from \"./data/indices/adjectives.js\";\nimport armsIndices from \"./data/indices/arms.js\";\nimport attiresIndices from \"./data/indices/attires.js\";\nimport brandsIndices from \"./data/indices/brands.js\";\nimport carsIndices from \"./data/indices/cars.js\";\nimport citiesIndices from \"./data/indices/cities.js\";\nimport coldWarIndices from \"./data/indices/cold-war.js\";\nimport commonNounsIndices from \"./data/indices/common-nouns.js\";\nimport drinksIndices from \"./data/indices/drinks.js\";\nimport drugsIndices from \"./data/indices/drugs.js\";\nimport establishmentsIndices from \"./data/indices/establishments.js\";\nimport loanwordsIndices from \"./data/indices/loanwords.js\";\nimport locationsIndices from \"./data/indices/locations.js\";\nimport madeUpIndices from \"./data/indices/made-up.js\";\nimport mediaReferencesIndices from \"./data/indices/media-references.js\";\nimport musicIndices from \"./data/indices/music.js\";\nimport musiciansIndices from \"./data/indices/musicians.js\";\nimport neighborhoodsIndices from \"./data/indices/neighborhoods.js\";\nimport newYorkIndices from \"./data/indices/new-york.js\";\nimport nicknamesIndices from \"./data/indices/nicknames.js\";\nimport peopleIndices from \"./data/indices/people.js\";\nimport plantsIndices from \"./data/indices/plants.js\";\nimport restaurantsIndices from \"./data/indices/restaurants.js\";\nimport scienceIndices from \"./data/indices/science.js\";\nimport slangsIndices from \"./data/indices/slangs.js\";\nimport spiritualIndices from \"./data/indices/spiritual.js\";\nimport streetsIndices from \"./data/indices/streets.js\";\nimport townsIndices from \"./data/indices/towns.js\";\nimport vehiclesIndices from \"./data/indices/vehicles.js\";\nimport verbsIndices from \"./data/indices/verbs.js\";\nimport weaponsIndices from \"./data/indices/weapons.js\";\n\n/**\n * A Steely Dan word catalog\n */\nexport default class MajorWords {\n /**\n * @returns {string[]} All words\n */\n static get all() { return list }\n\n /**\n * @param {string} letter - A single letter\n * @returns {string[]} Words starting with letter\n */\n static startingWith(letter) {\n if (letter.length !== 1 || !letter.match(/[a-z]/i)) throw new Error(\"Argument must be a single letter\");\n\n letter = letter.toLowerCase();\n\n const startIndex = letterIndex[letter];\n\n if (startIndex === undefined) return []; // no words starting with the given letter\n\n const letters = Object.keys(letterIndex);\n const nextLetter = letters.at(letters.indexOf(letter) + 1);\n const endIndex = letterIndex[nextLetter];\n\n return list.slice(startIndex, endIndex);\n }\n\n /**\n * @returns {string[]} All adjectives in word list\n */\n static get adjectives() { return this.#wordsAtIndices(adjectivesIndices) }\n\n /**\n * @returns {string[]} All arms-related terms in word list\n */\n static get arms() { return this.#wordsAtIndices(armsIndices) }\n\n /**\n * @returns {string[]} All attires in word list\n */\n static get attires() { return this.#wordsAtIndices(attiresIndices) }\n\n /**\n * @returns {string[]} All brands in word list\n */\n static get brands() { return this.#wordsAtIndices(brandsIndices) }\n\n /**\n * @returns {string[]} All cars in word list\n */\n static get cars() { return this.#wordsAtIndices(carsIndices) }\n\n /**\n * @returns {string[]} All city names in word list\n */\n static get cities() { return this.#wordsAtIndices(citiesIndices) }\n\n /**\n * @returns {string[]} All Cold War-related terms in word list\n */\n static get coldWar() { return this.#wordsAtIndices(coldWarIndices) }\n\n /**\n * @returns {string[]} All drinks in word list\n */\n static get drinks() { return this.#wordsAtIndices(drinksIndices) }\n\n /**\n * @returns {string[]} All drugs in word list\n */\n static get drugs() { return this.#wordsAtIndices(drugsIndices) }\n\n /**\n * @returns {string[]} All establishments in word list\n */\n static get establishments() { return this.#wordsAtIndices(establishmentsIndices) }\n\n /**\n * @returns {string[]} All loanwords in word list\n */\n static get loanwords() { return this.#wordsAtIndices(loanwordsIndices) }\n\n /**\n * @returns {string[]} All locations in word list\n */\n static get locations() { return this.#wordsAtIndices(locationsIndices) }\n\n /**\n * @returns {string[]} All made-up terms by Steely Dan in word list\n */\n static get madeUp() { return this.#wordsAtIndices(madeUpIndices) }\n\n /**\n * @returns {string[]} All media references in word list\n */\n static get mediaReferences() { return this.#wordsAtIndices(mediaReferencesIndices) }\n\n /**\n * @returns {string[]} All music-related terms in word list\n */\n static get music() { return this.#wordsAtIndices(musicIndices) }\n\n /**\n * @returns {string[]} All names of real musicians in word list\n */\n static get musicians() { return this.#wordsAtIndices(musiciansIndices) }\n\n /**\n * @returns {string[]} All neighborhoods in word list\n */\n static get neighborhoods() { return this.#wordsAtIndices(neighborhoodsIndices) }\n\n /**\n * @returns {string[]} All locations within New York State in word list\n */\n static get newYork() { return this.#wordsAtIndices(newYorkIndices) }\n\n /**\n * @returns {string[]} All nicknames in word list\n */\n static get nicknames() { return this.#wordsAtIndices(nicknamesIndices) }\n\n /**\n * @returns {string[]} All common nouns in word list\n */\n static get nouns() { return this.#wordsAtIndices(commonNounsIndices) }\n\n /**\n * @returns {string[]} All names of real people in word list\n */\n static get people() { return this.#wordsAtIndices(peopleIndices) }\n\n /**\n * @returns {string[]} All plants in word list\n */\n static get plants() { return this.#wordsAtIndices(plantsIndices) }\n\n /**\n * @returns {string[]} All restaurants in word list\n */\n static get restaurants() { return this.#wordsAtIndices(restaurantsIndices) }\n\n /**\n * @returns {string[]} All science-related terms in word list\n */\n static get science() { return this.#wordsAtIndices(scienceIndices) }\n\n /**\n * @returns {string[]} All slangs in word list\n */\n static get slangs() { return this.#wordsAtIndices(slangsIndices) }\n\n /**\n * @returns {string[]} All spiritual words in word list\n */\n static get spiritual() { return this.#wordsAtIndices(spiritualIndices) }\n\n /**\n * @returns {string[]} All street names in word list\n */\n static get streets() { return this.#wordsAtIndices(streetsIndices) }\n\n /**\n * @returns {string[]} All town names in word list\n */\n static get towns() { return this.#wordsAtIndices(townsIndices) }\n\n /**\n * @returns {string[]} All vehicles in word list\n */\n static get vehicles() { return this.#wordsAtIndices(vehiclesIndices) }\n\n /**\n * @returns {string[]} All verbs in word list\n */\n static get verbs() { return this.#wordsAtIndices(verbsIndices) }\n\n /**\n * @returns {string[]} All weapons in word list\n */\n static get weapons() { return this.#wordsAtIndices(weaponsIndices) }\n\n // private\n /**\n * @param {number[]} indices - Indices of words\n * @returns {string[]} Words at indices\n */\n static #wordsAtIndices(indices) { return indices.map(index => list[index]) }\n}\n"],"names":["list","letterIndex","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","r","s","t","w","z","adjectivesIndices","armsIndices","attiresIndices","brandsIndices","carsIndices","citiesIndices","coldWarIndices","commonNounsIndices","drinksIndices","drugsIndices","establishmentsIndices","loanwordsIndices","locationsIndices","madeUpIndices","mediaReferencesIndices","musicIndices","musiciansIndices","neighborhoodsIndices","newYorkIndices","nicknamesIndices","peopleIndices","plantsIndices","restaurantsIndices","scienceIndices","slangsIndices","spiritualIndices","streetsIndices","townsIndices","vehiclesIndices","verbsIndices","weaponsIndices","_wordsAtIndices","_classPrivateFieldLooseKey","MajorWords","_createClass","startingWith","letter","length","match","Error","toLowerCase","startIndex","undefined","letters","Object","keys","nextLetter","at","indexOf","slice","key","get","_classPrivateFieldLooseBase","this","defineProperty","value","indices","map","index"],"mappings":"idAAA,IAAAA,EAAe,CACb,UACA,gBACA,WACA,SACA,cACA,eACA,YACA,WACA,QACA,QACA,UACA,UACA,QACA,cACA,SACA,SACA,YACA,eACA,eACA,UACA,YACA,SACA,kBACA,cACA,aACA,YACA,UACA,OACA,YACA,SACA,eACA,eACA,kBACA,mBACA,WACA,qBACA,cACA,mBACA,gBACA,WACA,eACA,cACA,cACA,aACA,UACA,gBACA,YACA,eACA,YACA,cACA,gBACA,kBACA,YACA,WACA,WACA,UACA,MACA,YACA,eACA,eACA,SACA,iBACA,cACA,SACA,gBACA,gBACA,OACA,cACA,aACA,kBACA,cACA,SACA,OACA,OACA,kBACA,UACA,cACA,gBACA,aACA,eACA,iBACA,MACA,YACA,aACA,OACA,QACA,mBACA,aACA,aACA,QACA,UACA,gBACA,WACA,aACA,QACA,cACA,WACA,YACA,eACA,WACA,aACA,WACA,eACA,eACA,gBACA,SACA,WACA,gBACA,UACA,WACA,aACA,UACA,WAC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A,IAKlE,WAA2B,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBT,EAAoB,GAAC,CAAA4B,IAAA,UAAAC,IAK5E,WAAuB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBR,EAAgB,GAAC2B,CAAAA,IAAAC,SAAAA,IAKpE,WAAsB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBP,EAAe,GAAC,CAAA0B,IAAA,YAAAC,IAKlE,WAAyB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBN,EAAkB,GAACyB,CAAAA,IAAAC,UAAAA,IAKxE,WAAuB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBL,EAAgB,GAAC,CAAAwB,IAAA,QAAAC,IAKpE,WAAqB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBJ,EAAc,GAACuB,CAAAA,IAAAC,WAAAA,IAKhE,WAAwB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBH,EAAiB,GAAC,CAAAsB,IAAA,QAAAC,IAKtE,WAAqB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBF,EAAc,GAACqB,CAAAA,IAAAC,UAAAA,IAKhE,WAAuB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBD,EAAgB,+OAAC,CAnLvCG,GA0LiDW,OAAAU,eA1L3DrB,EAAUF,EAAAwB,CAAAA,MAmLuC,SAO3CC,GAAW,OAAOA,EAAQC,IAAI,SAAAC,GAAS,OAAAjF,EAAKiF,EAAM,EAAE"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A Steely Dan word catalog
|
|
3
|
+
*/
|
|
4
|
+
export default class MajorWords {
|
|
5
|
+
/**
|
|
6
|
+
* @returns {string[]} All words
|
|
7
|
+
*/
|
|
8
|
+
static get all(): string[];
|
|
9
|
+
/**
|
|
10
|
+
* @param {string} letter - A single letter
|
|
11
|
+
* @returns {string[]} Words starting with letter
|
|
12
|
+
*/
|
|
13
|
+
static startingWith(letter: string): string[];
|
|
14
|
+
/**
|
|
15
|
+
* @returns {string[]} All adjectives in word list
|
|
16
|
+
*/
|
|
17
|
+
static get adjectives(): string[];
|
|
18
|
+
/**
|
|
19
|
+
* @returns {string[]} All arms-related terms in word list
|
|
20
|
+
*/
|
|
21
|
+
static get arms(): string[];
|
|
22
|
+
/**
|
|
23
|
+
* @returns {string[]} All attires in word list
|
|
24
|
+
*/
|
|
25
|
+
static get attires(): string[];
|
|
26
|
+
/**
|
|
27
|
+
* @returns {string[]} All brands in word list
|
|
28
|
+
*/
|
|
29
|
+
static get brands(): string[];
|
|
30
|
+
/**
|
|
31
|
+
* @returns {string[]} All cars in word list
|
|
32
|
+
*/
|
|
33
|
+
static get cars(): string[];
|
|
34
|
+
/**
|
|
35
|
+
* @returns {string[]} All city names in word list
|
|
36
|
+
*/
|
|
37
|
+
static get cities(): string[];
|
|
38
|
+
/**
|
|
39
|
+
* @returns {string[]} All Cold War-related terms in word list
|
|
40
|
+
*/
|
|
41
|
+
static get coldWar(): string[];
|
|
42
|
+
/**
|
|
43
|
+
* @returns {string[]} All drinks in word list
|
|
44
|
+
*/
|
|
45
|
+
static get drinks(): string[];
|
|
46
|
+
/**
|
|
47
|
+
* @returns {string[]} All drugs in word list
|
|
48
|
+
*/
|
|
49
|
+
static get drugs(): string[];
|
|
50
|
+
/**
|
|
51
|
+
* @returns {string[]} All establishments in word list
|
|
52
|
+
*/
|
|
53
|
+
static get establishments(): string[];
|
|
54
|
+
/**
|
|
55
|
+
* @returns {string[]} All loanwords in word list
|
|
56
|
+
*/
|
|
57
|
+
static get loanwords(): string[];
|
|
58
|
+
/**
|
|
59
|
+
* @returns {string[]} All locations in word list
|
|
60
|
+
*/
|
|
61
|
+
static get locations(): string[];
|
|
62
|
+
/**
|
|
63
|
+
* @returns {string[]} All made-up terms by Steely Dan in word list
|
|
64
|
+
*/
|
|
65
|
+
static get madeUp(): string[];
|
|
66
|
+
/**
|
|
67
|
+
* @returns {string[]} All media references in word list
|
|
68
|
+
*/
|
|
69
|
+
static get mediaReferences(): string[];
|
|
70
|
+
/**
|
|
71
|
+
* @returns {string[]} All music-related terms in word list
|
|
72
|
+
*/
|
|
73
|
+
static get music(): string[];
|
|
74
|
+
/**
|
|
75
|
+
* @returns {string[]} All names of real musicians in word list
|
|
76
|
+
*/
|
|
77
|
+
static get musicians(): string[];
|
|
78
|
+
/**
|
|
79
|
+
* @returns {string[]} All neighborhoods in word list
|
|
80
|
+
*/
|
|
81
|
+
static get neighborhoods(): string[];
|
|
82
|
+
/**
|
|
83
|
+
* @returns {string[]} All locations within New York State in word list
|
|
84
|
+
*/
|
|
85
|
+
static get newYork(): string[];
|
|
86
|
+
/**
|
|
87
|
+
* @returns {string[]} All nicknames in word list
|
|
88
|
+
*/
|
|
89
|
+
static get nicknames(): string[];
|
|
90
|
+
/**
|
|
91
|
+
* @returns {string[]} All common nouns in word list
|
|
92
|
+
*/
|
|
93
|
+
static get nouns(): string[];
|
|
94
|
+
/**
|
|
95
|
+
* @returns {string[]} All names of real people in word list
|
|
96
|
+
*/
|
|
97
|
+
static get people(): string[];
|
|
98
|
+
/**
|
|
99
|
+
* @returns {string[]} All plants in word list
|
|
100
|
+
*/
|
|
101
|
+
static get plants(): string[];
|
|
102
|
+
/**
|
|
103
|
+
* @returns {string[]} All restaurants in word list
|
|
104
|
+
*/
|
|
105
|
+
static get restaurants(): string[];
|
|
106
|
+
/**
|
|
107
|
+
* @returns {string[]} All science-related terms in word list
|
|
108
|
+
*/
|
|
109
|
+
static get science(): string[];
|
|
110
|
+
/**
|
|
111
|
+
* @returns {string[]} All slangs in word list
|
|
112
|
+
*/
|
|
113
|
+
static get slangs(): string[];
|
|
114
|
+
/**
|
|
115
|
+
* @returns {string[]} All spiritual words in word list
|
|
116
|
+
*/
|
|
117
|
+
static get spiritual(): string[];
|
|
118
|
+
/**
|
|
119
|
+
* @returns {string[]} All street names in word list
|
|
120
|
+
*/
|
|
121
|
+
static get streets(): string[];
|
|
122
|
+
/**
|
|
123
|
+
* @returns {string[]} All town names in word list
|
|
124
|
+
*/
|
|
125
|
+
static get towns(): string[];
|
|
126
|
+
/**
|
|
127
|
+
* @returns {string[]} All vehicles in word list
|
|
128
|
+
*/
|
|
129
|
+
static get vehicles(): string[];
|
|
130
|
+
/**
|
|
131
|
+
* @returns {string[]} All verbs in word list
|
|
132
|
+
*/
|
|
133
|
+
static get verbs(): string[];
|
|
134
|
+
/**
|
|
135
|
+
* @returns {string[]} All weapons in word list
|
|
136
|
+
*/
|
|
137
|
+
static get weapons(): string[];
|
|
138
|
+
/**
|
|
139
|
+
* @param {number[]} indices - Indices of words
|
|
140
|
+
* @returns {string[]} Words at indices
|
|
141
|
+
*/
|
|
142
|
+
static "__#565@#wordsAtIndices"(indices: number[]): string[];
|
|
143
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function t(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var e=0;function r(t){return"__private_"+e+++"_"+t}var a=["A-frame","Alsatian wine","Altamira","Ambush","amen corner","Andrea Doria","Annandale","Arcturus","Aries","Arlen","Audi TT","automat","baion","Bakersfield","banyan","barrio","Barrytown","battle apple","Biscayne Bay","bivouac","black cow","Blazer","Bleecker Street","bodhisattva","bon marché","Brentwood","Brubeck","Brut","Camarillo","capris","Castle Bravo","catbird seat","Cathy Berberian","chase the dragon","cheaters","Chesterfield Kings","chiba-chiba","city of St. John","Cobra gunship","corncrib","Crimson Tide","Cuervo Gold","Culver City","Custerdome","cutouts","Dean & DeLuca","derby hat","dime dancing","Doctor Wu","Eames chair","East Paterson","Eastern Parkway","Eden Rock","Eldorado","Elsinore","Erzulie","fez","'54 Strat","Florida room","French twist","g'wine","gas centrifuge","gaslighting","gaucho","Gladstone bag","Gramercy Park","grok","Guadalajara","Hackensack","Haitian divorce","Hello Kitty","I.G.Y.","IHOP","ikat","inside straight","Jackson","Jane Street","Jill St. John","Jungle Jim","kirschwasser","Kiss Me Deadly","KLH","Kundalini","lachrymose","Lark","Lhasa","Lincoln Town Car","Little Eva","Lost Wages","Luger","masissi","Medicine Park","merengue","mini-Glock","Mizar","Monkey Time","Moon Pie","moray eel","Mount Savage","Mr. Chow","Mr. Parker","muscatel","Muswellbrook","New Frontier","New Hyde Park","Nino's","oleander","package store","Packard","panatela","Philly Dog","piaster","pin shot","prickly pear","Rabelaisian","Radio City","Raelettes","Red Hook","Red Hots","retsina","rinkydink","Roppongi","roulade","Rudy's","Santa Ana winds","Savoy sides","Scarsdale","Sheridan Square","skeevy","smoker","squonk","Stanyan Street","Steely Dan","Strand","Sunset","Sutton Place","Tanqueray","Tenderloin","TJ","Tompkins Square","tracer rounds","trading fours","Tuesday Weld","William and Mary","wing chair","wingding","Wolverine","zero crossing","Ziegfield","zombie"],i={a:0,b:12,c:28,d:45,e:49,f:56,g:60,h:68,i:71,j:75,k:79,l:83,m:90,n:103,o:106,p:107,r:114,s:124,t:136,w:143,z:147},s=[12,83,114,120,128],n=[17,30,38,89,93,140],o=[29,34,46,56,59],c=[3,27,35,41,45,70,72,81,96,108,118,125,136],u=[8,10,21,53,84,86,108],l=[13,28,54,67,68,85],h=[30,71,103],g=[0,4,11,14,15,17,19,20,23,24,29,31,34,36,38,39,44,46,47,49,56,58,59,61,63,64,73,74,79,82,89,92,93,97,101,106,107,109,111,112,113,119,122,129,130,140,144,145,147,149],d=[1,20,41,79,101,119,136,149],m=[1,35,36,41,79,101,109,119,136,149],k=[45,52,72,99,105,115,123,133,143],y=[15,19,23,24,63,79,82,90],b=[2,6,7,13,16,18,22,25,28,37,42,50,51,54,65,67,68,76,85,91,94,98,102,104,117,121,126,127,131,134,135,137,138,139],p=[17,43,112],w=[80,88,95,132],f=[12,57,92,110,122,141],v=[9,26,32,87,100,116],S=[6,16,25,135,137],C=[6,16,22,51,65,76,104,126,127,135,137,139],A=[40,78,138],P=[9,26,32,48,77,78,87,100,142,148],B=[14,106,113],T=[45,72,99,105,123],E=[71,124,147],M=[33,36,60,66,69,75,90,128,129,145],L=[4,23,55,82],R=[22,51,76,131,134],z=[42,50,91,98,102,117,126],H=[5,8,10,21,53,84,86,108,146],J=[35,60,62,66,141],D=[17,38,89,93],W=/*#__PURE__*/r("wordsAtIndices");class G{static get all(){return a}static startingWith(t){if(1!==t.length||!t.match(/[a-z]/i))throw new Error("Argument must be a single letter");t=t.toLowerCase();const e=i[t];if(void 0===e)return[];const r=Object.keys(i),s=r.at(r.indexOf(t)+1);return a.slice(e,i[s])}static get adjectives(){return t(this,W)[W](s)}static get arms(){return t(this,W)[W](n)}static get attires(){return t(this,W)[W](o)}static get brands(){return t(this,W)[W](c)}static get cars(){return t(this,W)[W](u)}static get cities(){return t(this,W)[W](l)}static get coldWar(){return t(this,W)[W](h)}static get drinks(){return t(this,W)[W](d)}static get drugs(){return t(this,W)[W](m)}static get establishments(){return t(this,W)[W](k)}static get loanwords(){return t(this,W)[W](y)}static get locations(){return t(this,W)[W](b)}static get madeUp(){return t(this,W)[W](p)}static get mediaReferences(){return t(this,W)[W](w)}static get music(){return t(this,W)[W](f)}static get musicians(){return t(this,W)[W](v)}static get neighborhoods(){return t(this,W)[W](S)}static get newYork(){return t(this,W)[W](C)}static get nicknames(){return t(this,W)[W](A)}static get nouns(){return t(this,W)[W](g)}static get people(){return t(this,W)[W](P)}static get plants(){return t(this,W)[W](B)}static get restaurants(){return t(this,W)[W](T)}static get science(){return t(this,W)[W](E)}static get slangs(){return t(this,W)[W](M)}static get spiritual(){return t(this,W)[W](L)}static get streets(){return t(this,W)[W](R)}static get towns(){return t(this,W)[W](z)}static get vehicles(){return t(this,W)[W](H)}static get verbs(){return t(this,W)[W](J)}static get weapons(){return t(this,W)[W](D)}}Object.defineProperty(G,W,{value:function(t){return t.map(t=>a[t])}});export{G as default};
|
|
2
|
+
//# sourceMappingURL=index.modern.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.modern.js","sources":["../src/data/list.js","../src/data/letter-index.js","../src/data/indices/adjectives.js","../src/data/indices/arms.js","../src/data/indices/attires.js","../src/data/indices/brands.js","../src/data/indices/cars.js","../src/data/indices/cities.js","../src/data/indices/cold-war.js","../src/data/indices/common-nouns.js","../src/data/indices/drinks.js","../src/data/indices/drugs.js","../src/data/indices/establishments.js","../src/data/indices/loanwords.js","../src/data/indices/locations.js","../src/data/indices/made-up.js","../src/data/indices/media-references.js","../src/data/indices/music.js","../src/data/indices/musicians.js","../src/data/indices/neighborhoods.js","../src/data/indices/new-york.js","../src/data/indices/nicknames.js","../src/data/indices/people.js","../src/data/indices/plants.js","../src/data/indices/restaurants.js","../src/data/indices/science.js","../src/data/indices/slangs.js","../src/data/indices/spiritual.js","../src/data/indices/streets.js","../src/data/indices/towns.js","../src/data/indices/vehicles.js","../src/data/indices/verbs.js","../src/data/indices/weapons.js","../src/index.js"],"sourcesContent":["export default [\n \"A-frame\", // common nouns\n \"Alsatian wine\", // drinks, drugs\n \"Altamira\", // locations\n \"Ambush\", // brands\n \"amen corner\", // common nouns, spiritual\n \"Andrea Doria\", // vehicles\n \"Annandale\", // locations, neighborhoods, New York\n \"Arcturus\", // locations\n \"Aries\", // cars, vehicles\n \"Arlen\", // musicians, people\n \"Audi TT\", // cars, vehicles\n \"automat\", // common nouns\n \"baion\", // adjectives, music\n \"Bakersfield\", // cities, locations\n \"banyan\", // common nouns, plants\n \"barrio\", // common nouns, loanwords\n \"Barrytown\", // locations, neighborhoods, New York\n \"battle apple\", // arms, common nouns, made-up, weapons\n \"Biscayne Bay\", // locations\n \"bivouac\", // common nouns, loanwords\n \"black cow\", // common nouns, drinks\n \"Blazer\", // cars, vehicles\n \"Bleecker Street\", // locations, New York, streets\n \"bodhisattva\", // common nouns, loanwords, spiritual\n \"bon marché\", // common nouns, loanwords\n \"Brentwood\", // locations, neighborhoods\n \"Brubeck\", // musicians, people\n \"Brut\", // brands\n \"Camarillo\", // cities, locations\n \"capris\", // attires, common nouns\n \"Castle Bravo\", // arms, Cold War\n \"catbird seat\", // common nouns\n \"Cathy Berberian\", // musicians, people\n \"chase the dragon\", // slangs, verbs\n \"cheaters\", // attires, common nouns\n \"Chesterfield Kings\", // brands, drugs\n \"chiba-chiba\", // common nouns, drugs, slangs\n \"city of St. John\", // locations\n \"Cobra gunship\", // arms, common nouns, weapons\n \"corncrib\", // common nouns\n \"Crimson Tide\", // nicknames\n \"Cuervo Gold\", // brands, drinks, drugs\n \"Culver City\", // locations, towns\n \"Custerdome\", // made-up\n \"cutouts\", // common nouns\n \"Dean & DeLuca\", // brands, establishments, restaurants\n \"derby hat\", // attires, common nouns\n \"dime dancing\", // common nouns\n \"Doctor Wu\", // people\n \"Eames chair\", // common nouns\n \"East Paterson\", // locations, towns\n \"Eastern Parkway\", // locations, New York, streets\n \"Eden Rock\", // establishments\n \"Eldorado\", // cars, vehicles\n \"Elsinore\", // cities, locations\n \"Erzulie\", // spiritual\n \"fez\", // attires, common nouns\n \"'54 Strat\", // music\n \"Florida room\", // common nouns\n \"French twist\", // attires, common nouns\n \"g'wine\", // slangs, verbs\n \"gas centrifuge\", // common nouns\n \"gaslighting\", // verbs\n \"gaucho\", // common nouns, loanwords\n \"Gladstone bag\", // common nouns\n \"Gramercy Park\", // locations, New York\n \"grok\", // slangs, verbs\n \"Guadalajara\", // cities, locations\n \"Hackensack\", // cities, locations\n \"Haitian divorce\", // slangs\n \"Hello Kitty\", // brands\n \"I.G.Y.\", // Cold War, science\n \"IHOP\", // brands, establishments, restaurants\n \"ikat\", // common nouns\n \"inside straight\", // common nouns\n \"Jackson\", // slangs\n \"Jane Street\", // locations, New York, streets\n \"Jill St. John\", // people\n \"Jungle Jim\", // nicknames, people\n \"kirschwasser\", // common nouns, drinks, drugs, loanwords\n \"Kiss Me Deadly\", // media references\n \"KLH\", // brands\n \"Kundalini\", // common nouns, loanwords, spiritual\n \"lachrymose\", // adjectives\n \"Lark\", // cars, vehicles\n \"Lhasa\", // cities, locations\n \"Lincoln Town Car\", // cars, vehicles\n \"Little Eva\", // musicians, people\n \"Lost Wages\", // media references\n \"Luger\", // arms, common nouns, weapons\n \"masissi\", // common nouns, loanwords, slangs\n \"Medicine Park\", // locations, towns\n \"merengue\", // common nouns, music\n \"mini-Glock\", // arms, common nouns, weapons\n \"Mizar\", // locations\n \"Monkey Time\", // media references\n \"Moon Pie\", // brands\n \"moray eel\", // common nouns\n \"Mount Savage\", // locations, towns\n \"Mr. Chow\", // establishments, restaurants\n \"Mr. Parker\", // musicians, people\n \"muscatel\", // common nouns, drinks, drugs\n \"Muswellbrook\", // locations, towns\n \"New Frontier\", // Cold War\n \"New Hyde Park\", // locations, New York\n \"Nino's\", // establishments, restaurants\n \"oleander\", // common nouns, plants\n \"package store\", // common nouns\n \"Packard\", // brands, cars, vehicles\n \"panatela\", // common nouns, drugs\n \"Philly Dog\", // music\n \"piaster\", // common nouns\n \"pin shot\", // common nouns, made-up\n \"prickly pear\", // common nouns, plants\n \"Rabelaisian\", // adjectives\n \"Radio City\", // establishments\n \"Raelettes\", // musicians\n \"Red Hook\", // locations, towns\n \"Red Hots\", // brands\n \"retsina\", // common nouns, drinks, drugs\n \"rinkydink\", // adjectives\n \"Roppongi\", // locations\n \"roulade\", // common nouns, music\n \"Rudy's\", // establishments, restaurants\n \"Santa Ana winds\", // science\n \"Savoy sides\", // brands\n \"Scarsdale\", // locations, New York, towns\n \"Sheridan Square\", // locations, New York\n \"skeevy\", // adjectives, slangs\n \"smoker\", // common nouns, slangs\n \"squonk\", // common nouns\n \"Stanyan Street\", // locations, streets\n \"Steely Dan\", // media references\n \"Strand\", // establishments\n \"Sunset\", // locations, streets\n \"Sutton Place\", // locations, neighborhoods, New York\n \"Tanqueray\", // brands, drinks, drugs\n \"Tenderloin\", // locations, neighborhoods, New York\n \"TJ\", // locations, nicknames\n \"Tompkins Square\", // locations, New York\n \"tracer rounds\", // arms, common nouns\n \"trading fours\", // music, verbs\n \"Tuesday Weld\", // people\n \"William and Mary\", // establishments\n \"wing chair\", // common nouns\n \"wingding\", // common nouns, slangs\n \"Wolverine\", // vehicles\n \"zero crossing\", // common nouns, science\n \"Ziegfield\", // people\n \"zombie\" // common nouns, drinks, drugs\n]\n","export default {\n \"a\": 0,\n \"b\": 12,\n \"c\": 28,\n \"d\": 45,\n \"e\": 49,\n \"f\": 56,\n \"g\": 60,\n \"h\": 68,\n \"i\": 71,\n \"j\": 75,\n \"k\": 79,\n \"l\": 83,\n \"m\": 90,\n \"n\": 103,\n \"o\": 106,\n \"p\": 107,\n \"r\": 114,\n \"s\": 124,\n \"t\": 136,\n \"w\": 143,\n \"z\": 147\n}\n","export default\n[12, 83, 114, 120, 128]\n","export default\n[17, 30, 38, 89, 93, 140]\n","export default\n[29, 34, 46, 56, 59]\n","export default\n[3, 27, 35, 41, 45, 70, 72, 81, 96, 108, 118, 125, 136]\n","export default\n[8, 10, 21, 53, 84, 86, 108]\n","export default\n[13, 28, 54, 67, 68, 85]\n","export default\n[30, 71, 103]\n","export default\n[0, 4, 11, 14, 15, 17, 19, 20, 23, 24, 29, 31, 34, 36, 38, 39, 44, 46, 47, 49, 56, 58, 59, 61, 63, 64, 73, 74, 79, 82,\n89, 92, 93, 97, 101, 106, 107, 109, 111, 112, 113, 119, 122, 129, 130, 140, 144, 145, 147, 149]\n","export default\n[1, 20, 41, 79, 101, 119, 136, 149]\n","export default\n[1, 35, 36, 41, 79, 101, 109, 119, 136, 149]\n","export default\n[45, 52, 72, 99, 105, 115, 123, 133, 143]\n","export default\n[15, 19, 23, 24, 63, 79, 82, 90]\n","export default\n[2, 6, 7, 13, 16, 18, 22, 25, 28, 37, 42, 50, 51, 54, 65, 67, 68, 76, 85, 91, 94, 98, 102, 104, 117, 121, 126, 127,\n131, 134, 135, 137, 138, 139]\n","export default\n[17, 43, 112]\n","export default\n[80, 88, 95, 132]\n","export default\n[12, 57, 92, 110, 122, 141]\n","export default\n[9, 26, 32, 87, 100, 116]\n","export default\n[6, 16, 25, 135, 137]\n","export default\n[6, 16, 22, 51, 65, 76, 104, 126, 127, 135, 137, 139]\n","export default\n[40, 78, 138]\n","export default\n[9, 26, 32, 48, 77, 78, 87, 100, 142, 148]\n","export default\n[14, 106, 113]\n","export default\n[45, 72, 99, 105, 123]\n","export default\n[71, 124, 147]\n","export default\n[33, 36, 60, 66, 69, 75, 90, 128, 129, 145]\n","export default\n[4, 23, 55, 82]\n","export default\n[22, 51, 76, 131, 134]\n","export default\n[42, 50, 91, 98, 102, 117, 126]\n","export default\n[5, 8, 10, 21, 53, 84, 86, 108, 146]\n","export default\n[35, 60, 62, 66, 141]\n","export default\n[17, 38, 89, 93]\n","import list from \"./data/list.js\";\nimport letterIndex from \"./data/letter-index.js\";\nimport adjectivesIndices from \"./data/indices/adjectives.js\";\nimport armsIndices from \"./data/indices/arms.js\";\nimport attiresIndices from \"./data/indices/attires.js\";\nimport brandsIndices from \"./data/indices/brands.js\";\nimport carsIndices from \"./data/indices/cars.js\";\nimport citiesIndices from \"./data/indices/cities.js\";\nimport coldWarIndices from \"./data/indices/cold-war.js\";\nimport commonNounsIndices from \"./data/indices/common-nouns.js\";\nimport drinksIndices from \"./data/indices/drinks.js\";\nimport drugsIndices from \"./data/indices/drugs.js\";\nimport establishmentsIndices from \"./data/indices/establishments.js\";\nimport loanwordsIndices from \"./data/indices/loanwords.js\";\nimport locationsIndices from \"./data/indices/locations.js\";\nimport madeUpIndices from \"./data/indices/made-up.js\";\nimport mediaReferencesIndices from \"./data/indices/media-references.js\";\nimport musicIndices from \"./data/indices/music.js\";\nimport musiciansIndices from \"./data/indices/musicians.js\";\nimport neighborhoodsIndices from \"./data/indices/neighborhoods.js\";\nimport newYorkIndices from \"./data/indices/new-york.js\";\nimport nicknamesIndices from \"./data/indices/nicknames.js\";\nimport peopleIndices from \"./data/indices/people.js\";\nimport plantsIndices from \"./data/indices/plants.js\";\nimport restaurantsIndices from \"./data/indices/restaurants.js\";\nimport scienceIndices from \"./data/indices/science.js\";\nimport slangsIndices from \"./data/indices/slangs.js\";\nimport spiritualIndices from \"./data/indices/spiritual.js\";\nimport streetsIndices from \"./data/indices/streets.js\";\nimport townsIndices from \"./data/indices/towns.js\";\nimport vehiclesIndices from \"./data/indices/vehicles.js\";\nimport verbsIndices from \"./data/indices/verbs.js\";\nimport weaponsIndices from \"./data/indices/weapons.js\";\n\n/**\n * A Steely Dan word catalog\n */\nexport default class MajorWords {\n /**\n * @returns {string[]} All words\n */\n static get all() { return list }\n\n /**\n * @param {string} letter - A single letter\n * @returns {string[]} Words starting with letter\n */\n static startingWith(letter) {\n if (letter.length !== 1 || !letter.match(/[a-z]/i)) throw new Error(\"Argument must be a single letter\");\n\n letter = letter.toLowerCase();\n\n const startIndex = letterIndex[letter];\n\n if (startIndex === undefined) return []; // no words starting with the given letter\n\n const letters = Object.keys(letterIndex);\n const nextLetter = letters.at(letters.indexOf(letter) + 1);\n const endIndex = letterIndex[nextLetter];\n\n return list.slice(startIndex, endIndex);\n }\n\n /**\n * @returns {string[]} All adjectives in word list\n */\n static get adjectives() { return this.#wordsAtIndices(adjectivesIndices) }\n\n /**\n * @returns {string[]} All arms-related terms in word list\n */\n static get arms() { return this.#wordsAtIndices(armsIndices) }\n\n /**\n * @returns {string[]} All attires in word list\n */\n static get attires() { return this.#wordsAtIndices(attiresIndices) }\n\n /**\n * @returns {string[]} All brands in word list\n */\n static get brands() { return this.#wordsAtIndices(brandsIndices) }\n\n /**\n * @returns {string[]} All cars in word list\n */\n static get cars() { return this.#wordsAtIndices(carsIndices) }\n\n /**\n * @returns {string[]} All city names in word list\n */\n static get cities() { return this.#wordsAtIndices(citiesIndices) }\n\n /**\n * @returns {string[]} All Cold War-related terms in word list\n */\n static get coldWar() { return this.#wordsAtIndices(coldWarIndices) }\n\n /**\n * @returns {string[]} All drinks in word list\n */\n static get drinks() { return this.#wordsAtIndices(drinksIndices) }\n\n /**\n * @returns {string[]} All drugs in word list\n */\n static get drugs() { return this.#wordsAtIndices(drugsIndices) }\n\n /**\n * @returns {string[]} All establishments in word list\n */\n static get establishments() { return this.#wordsAtIndices(establishmentsIndices) }\n\n /**\n * @returns {string[]} All loanwords in word list\n */\n static get loanwords() { return this.#wordsAtIndices(loanwordsIndices) }\n\n /**\n * @returns {string[]} All locations in word list\n */\n static get locations() { return this.#wordsAtIndices(locationsIndices) }\n\n /**\n * @returns {string[]} All made-up terms by Steely Dan in word list\n */\n static get madeUp() { return this.#wordsAtIndices(madeUpIndices) }\n\n /**\n * @returns {string[]} All media references in word list\n */\n static get mediaReferences() { return this.#wordsAtIndices(mediaReferencesIndices) }\n\n /**\n * @returns {string[]} All music-related terms in word list\n */\n static get music() { return this.#wordsAtIndices(musicIndices) }\n\n /**\n * @returns {string[]} All names of real musicians in word list\n */\n static get musicians() { return this.#wordsAtIndices(musiciansIndices) }\n\n /**\n * @returns {string[]} All neighborhoods in word list\n */\n static get neighborhoods() { return this.#wordsAtIndices(neighborhoodsIndices) }\n\n /**\n * @returns {string[]} All locations within New York State in word list\n */\n static get newYork() { return this.#wordsAtIndices(newYorkIndices) }\n\n /**\n * @returns {string[]} All nicknames in word list\n */\n static get nicknames() { return this.#wordsAtIndices(nicknamesIndices) }\n\n /**\n * @returns {string[]} All common nouns in word list\n */\n static get nouns() { return this.#wordsAtIndices(commonNounsIndices) }\n\n /**\n * @returns {string[]} All names of real people in word list\n */\n static get people() { return this.#wordsAtIndices(peopleIndices) }\n\n /**\n * @returns {string[]} All plants in word list\n */\n static get plants() { return this.#wordsAtIndices(plantsIndices) }\n\n /**\n * @returns {string[]} All restaurants in word list\n */\n static get restaurants() { return this.#wordsAtIndices(restaurantsIndices) }\n\n /**\n * @returns {string[]} All science-related terms in word list\n */\n static get science() { return this.#wordsAtIndices(scienceIndices) }\n\n /**\n * @returns {string[]} All slangs in word list\n */\n static get slangs() { return this.#wordsAtIndices(slangsIndices) }\n\n /**\n * @returns {string[]} All spiritual words in word list\n */\n static get spiritual() { return this.#wordsAtIndices(spiritualIndices) }\n\n /**\n * @returns {string[]} All street names in word list\n */\n static get streets() { return this.#wordsAtIndices(streetsIndices) }\n\n /**\n * @returns {string[]} All town names in word list\n */\n static get towns() { return this.#wordsAtIndices(townsIndices) }\n\n /**\n * @returns {string[]} All vehicles in word list\n */\n static get vehicles() { return this.#wordsAtIndices(vehiclesIndices) }\n\n /**\n * @returns {string[]} All verbs in word list\n */\n static get verbs() { return this.#wordsAtIndices(verbsIndices) }\n\n /**\n * @returns {string[]} All weapons in word list\n */\n static get weapons() { return this.#wordsAtIndices(weaponsIndices) }\n\n // private\n /**\n * @param {number[]} indices - Indices of words\n * @returns {string[]} Words at indices\n */\n static #wordsAtIndices(indices) { return indices.map(index => list[index]) }\n}\n"],"names":["list","letterIndex","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","r","s","t","w","z","adjectivesIndices","armsIndices","attiresIndices","brandsIndices","carsIndices","citiesIndices","coldWarIndices","commonNounsIndices","drinksIndices","drugsIndices","establishmentsIndices","loanwordsIndices","locationsIndices","madeUpIndices","mediaReferencesIndices","musicIndices","musiciansIndices","neighborhoodsIndices","newYorkIndices","nicknamesIndices","peopleIndices","plantsIndices","restaurantsIndices","scienceIndices","slangsIndices","spiritualIndices","streetsIndices","townsIndices","vehiclesIndices","verbsIndices","weaponsIndices","_wordsAtIndices","_classPrivateFieldLooseKey","MajorWords","all","startingWith","letter","length","match","Error","toLowerCase","startIndex","undefined","letters","Object","keys","nextLetter","at","indexOf","slice","adjectives","_classPrivateFieldLooseBase","this","arms","attires","brands","cars","cities","coldWar","drinks","drugs","establishments","loanwords","locations","madeUp","mediaReferences","music","musicians","neighborhoods","newYork","nicknames","nouns","people","plants","restaurants","science","slangs","spiritual","streets","towns","vehicles","verbs","weapons","defineProperty","value","indices","map","index"],"mappings":"kLAAA,IAAAA,EAAe,CACb,UACA,gBACA,WACA,SACA,cACA,eACA,YACA,WACA,QACA,QACA,UACA,UACA,QACA,cACA,SACA,SACA,YACA,eACA,eACA,UACA,YACA,SACA,kBACA,cACA,aACA,YACA,UACA,OACA,YACA,SACA,eACA,eACA,kBACA,mBACA,WACA,qBACA,cACA,mBACA,gBACA,WACA,eACA,cACA,cACA,aACA,UACA,gBACA,YACA,eACA,YACA,cACA,gBACA,kBACA,YACA,WACA,WACA,UACA,MACA,YACA,eACA,eACA,SACA,iBACA,cACA,SACA,gBACA,gBACA,OACA,cACA,aACA,kBACA,cACA,SACA,OACA,OACA,kBACA,UACA,cACA,gBACA,aACA,eACA,iBACA,MACA,YACA,aACA,OACA,QACA,mBACA,aACA,aACA,QACA,UACA,gBACA,WACA,aACA,QACA,cACA,WACA,YACA,eACA,WACA,aACA,WACA,eACA,eACA,gBACA,SACA,WACA,gBACA,UACA,WACA,aACA,UACA,WACA,eACA,cACA,aACA,YACA,WACA,WACA,UACA,YACA,WACA,UACA,SACA,kBACA,cACA,YACA,kBACA,SACA,SACA,SACA,iBACA,aACA,SACA,SACA,eACA,YACA,aACA,KACA,kBACA,gBACA,gBACA,eACA,mBACA,aACA,WACA,YACA,gBACA,YACA,UCtJFC,EAAe,CACbC,EAAK,EACLC,EAAK,GACLC,EAAK,GACLC,EAAK,GACLC,EAAK,GACLC,EAAK,GACLC,EAAK,GACLC,EAAK,GACLC,EAAK,GACLC,EAAK,GACLC,EAAK,GACLC,EAAK,GACLC,EAAK,GACLC,EAAK,IACLC,EAAK,IACLC,EAAK,IACLC,EAAK,IACLC,EAAK,IACLC,EAAK,IACLC,EAAK,IACLC,EAAK,KCpBPC,EAAA,CAAC,GAAI,GAAI,IAAK,IAAK,KCDnBC,EACA,CAAC,GAAI,GAAI,GAAI,GAAI,GAAI,KCArBC,EAAA,CAAC,GAAI,GAAI,GAAI,GAAI,ICAjBC,EAAA,CAAC,EAAG,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,IAAK,IAAK,IAAK,KCDnDC,EACA,CAAC,EAAG,GAAI,GAAI,GAAI,GAAI,GAAI,KCDxBC,EACA,CAAC,GAAI,GAAI,GAAI,GAAI,GAAI,ICDrBC,EACA,CAAC,GAAI,GAAI,KCATC,EAAA,CAAC,EA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iBR,EAAgB,CAKnE,iBAAWqD,GAAW,OAAAzB,EAAOC,KAAIrB,GAAAA,GAAiBP,EAAe,CAKjE,oBAAWqD,GAAc,OAAA1B,EAAOC,KAAIrB,GAAAA,GAAiBN,EAAkB,CAKvE,kBAAWqD,GAAY,OAAA3B,EAAOC,KAAIrB,GAAAA,GAAiBL,EAAgB,CAKnE,gBAAWqD,GAAU,OAAA5B,EAAOC,KAAIrB,GAAAA,GAAiBJ,EAAc,CAK/D,mBAAWqD,GAAa,OAAA7B,EAAOC,KAAIrB,GAAAA,GAAiBH,EAAiB,CAKrE,gBAAWqD,GAAU,OAAA9B,EAAOC,KAAIrB,GAAAA,GAAiBF,EAAc,CAK/D,kBAAWqD,GAAY,OAAA/B,EAAOC,KAAIrB,GAAAA,GAAiBD,EAAgB,EAOWc,OAAAuC,eA1L3DlD,EAAUF,EAAA,CAAAqD,MA2L9B,SAD0BC,GAAW,OAAOA,EAAQC,IAAIC,GAAS9G,EAAK8G,GAAQ"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function e(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var t=0;function r(e){return"__private_"+t+++"_"+e}function n(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var i=["A-frame","Alsatian wine","Altamira","Ambush","amen corner","Andrea Doria","Annandale","Arcturus","Aries","Arlen","Audi TT","automat","baion","Bakersfield","banyan","barrio","Barrytown","battle apple","Biscayne Bay","bivouac","black cow","Blazer","Bleecker Street","bodhisattva","bon marché","Brentwood","Brubeck","Brut","Camarillo","capris","Castle Bravo","catbird seat","Cathy Berberian","chase the dragon","cheaters","Chesterfield Kings","chiba-chiba","city of St. John","Cobra gunship","corncrib","Crimson Tide","Cuervo Gold","Culver City","Custerdome","cutouts","Dean & DeLuca","derby hat","dime dancing","Doctor Wu","Eames chair","East Paterson","Eastern Parkway","Eden Rock","Eldorado","Elsinore","Erzulie","fez","'54 Strat","Florida room","French twist","g'wine","gas centrifuge","gaslighting","gaucho","Gladstone bag","Gramercy Park","grok","Guadalajara","Hackensack","Haitian divorce","Hello Kitty","I.G.Y.","IHOP","ikat","inside straight","Jackson","Jane Street","Jill St. John","Jungle Jim","kirschwasser","Kiss Me Deadly","KLH","Kundalini","lachrymose","Lark","Lhasa","Lincoln Town Car","Little Eva","Lost Wages","Luger","masissi","Medicine Park","merengue","mini-Glock","Mizar","Monkey Time","Moon Pie","moray eel","Mount Savage","Mr. Chow","Mr. Parker","muscatel","Muswellbrook","New Frontier","New Hyde Park","Nino's","oleander","package store","Packard","panatela","Philly Dog","piaster","pin shot","prickly pear","Rabelaisian","Radio City","Raelettes","Red Hook","Red Hots","retsina","rinkydink","Roppongi","roulade","Rudy's","Santa Ana winds","Savoy sides","Scarsdale","Sheridan Square","skeevy","smoker","squonk","Stanyan Street","Steely Dan","Strand","Sunset","Sutton Place","Tanqueray","Tenderloin","TJ","Tompkins Square","tracer rounds","trading fours","Tuesday Weld","William and Mary","wing chair","wingding","Wolverine","zero crossing","Ziegfield","zombie"],a={a:0,b:12,c:28,d:45,e:49,f:56,g:60,h:68,i:71,j:75,k:79,l:83,m:90,n:103,o:106,p:107,r:114,s:124,t:136,w:143,z:147},o=[12,83,114,120,128],s=[17,30,38,89,93,140],u=[29,34,46,56,59],c=[3,27,35,41,45,70,72,81,96,108,118,125,136],l=[8,10,21,53,84,86,108],y=[13,28,54,67,68,85],g=[30,71,103],h=[0,4,11,14,15,17,19,20,23,24,29,31,34,36,38,39,44,46,47,49,56,58,59,61,63,64,73,74,79,82,89,92,93,97,101,106,107,109,111,112,113,119,122,129,130,140,144,145,147,149],d=[1,20,41,79,101,119,136,149],f=[1,35,36,41,79,101,109,119,136,149],k=[45,52,72,99,105,115,123,133,143],m=[15,19,23,24,63,79,82,90],b=[2,6,7,13,16,18,22,25,28,37,42,50,51,54,65,67,68,76,85,91,94,98,102,104,117,121,126,127,131,134,135,137,138,139],p=[17,43,112],v=[80,88,95,132],w=[12,57,92,110,122,141],S=[9,26,32,87,100,116],P=[6,16,25,135,137],C=[6,16,22,51,65,76,104,126,127,135,137,139],A=[40,78,138],T=[9,26,32,48,77,78,87,100,142,148],B=[14,106,113],E=[45,72,99,105,123],M=[71,124,147],j=[33,36,60,66,69,75,90,128,129,145],L=[4,23,55,82],R=[22,51,76,131,134],z=[42,50,91,98,102,117,126],H=[5,8,10,21,53,84,86,108,146],J=[35,60,62,66,141],D=[17,38,89,93],O=/*#__PURE__*/r("wordsAtIndices"),W=/*#__PURE__*/function(){function t(){}return t.startingWith=function(e){if(1!==e.length||!e.match(/[a-z]/i))throw new Error("Argument must be a single letter");e=e.toLowerCase();var t=a[e];if(void 0===t)return[];var r=Object.keys(a),n=r.at(r.indexOf(e)+1);return i.slice(t,a[n])},r=t,(W=[{key:"all",get:function(){return i}},{key:"adjectives",get:function(){return e(this,O)[O](o)}},{key:"arms",get:function(){return e(this,O)[O](s)}},{key:"attires",get:function(){return e(this,O)[O](u)}},{key:"brands",get:function(){return e(this,O)[O](c)}},{key:"cars",get:function(){return e(this,O)[O](l)}},{key:"cities",get:function(){return e(this,O)[O](y)}},{key:"coldWar",get:function(){return e(this,O)[O](g)}},{key:"drinks",get:function(){return e(this,O)[O](d)}},{key:"drugs",get:function(){return e(this,O)[O](f)}},{key:"establishments",get:function(){return e(this,O)[O](k)}},{key:"loanwords",get:function(){return e(this,O)[O](m)}},{key:"locations",get:function(){return e(this,O)[O](b)}},{key:"madeUp",get:function(){return e(this,O)[O](p)}},{key:"mediaReferences",get:function(){return e(this,O)[O](v)}},{key:"music",get:function(){return e(this,O)[O](w)}},{key:"musicians",get:function(){return e(this,O)[O](S)}},{key:"neighborhoods",get:function(){return e(this,O)[O](P)}},{key:"newYork",get:function(){return e(this,O)[O](C)}},{key:"nicknames",get:function(){return e(this,O)[O](A)}},{key:"nouns",get:function(){return e(this,O)[O](h)}},{key:"people",get:function(){return e(this,O)[O](T)}},{key:"plants",get:function(){return e(this,O)[O](B)}},{key:"restaurants",get:function(){return e(this,O)[O](E)}},{key:"science",get:function(){return e(this,O)[O](M)}},{key:"slangs",get:function(){return e(this,O)[O](j)}},{key:"spiritual",get:function(){return e(this,O)[O](L)}},{key:"streets",get:function(){return e(this,O)[O](R)}},{key:"towns",get:function(){return e(this,O)[O](z)}},{key:"vehicles",get:function(){return e(this,O)[O](H)}},{key:"verbs",get:function(){return e(this,O)[O](J)}},{key:"weapons",get:function(){return e(this,O)[O](D)}}])&&function(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}(r,W),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,W}();Object.defineProperty(W,O,{value:function(e){return e.map(function(e){return i[e]})}});export{W as default};
|
|
2
|
+
//# sourceMappingURL=index.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.module.js","sources":["../src/data/list.js","../src/data/letter-index.js","../src/data/indices/adjectives.js","../src/data/indices/arms.js","../src/data/indices/attires.js","../src/data/indices/brands.js","../src/data/indices/cars.js","../src/data/indices/cities.js","../src/data/indices/cold-war.js","../src/data/indices/common-nouns.js","../src/data/indices/drinks.js","../src/data/indices/drugs.js","../src/data/indices/establishments.js","../src/data/indices/loanwords.js","../src/data/indices/locations.js","../src/data/indices/made-up.js","../src/data/indices/media-references.js","../src/data/indices/music.js","../src/data/indices/musicians.js","../src/data/indices/neighborhoods.js","../src/data/indices/new-york.js","../src/data/indices/nicknames.js","../src/data/indices/people.js","../src/data/indices/plants.js","../src/data/indices/restaurants.js","../src/data/indices/science.js","../src/data/indices/slangs.js","../src/data/indices/spiritual.js","../src/data/indices/streets.js","../src/data/indices/towns.js","../src/data/indices/vehicles.js","../src/data/indices/verbs.js","../src/data/indices/weapons.js","../src/index.js"],"sourcesContent":["export default [\n \"A-frame\", // common nouns\n \"Alsatian wine\", // drinks, drugs\n \"Altamira\", // locations\n \"Ambush\", // brands\n \"amen corner\", // common nouns, spiritual\n \"Andrea Doria\", // vehicles\n \"Annandale\", // locations, neighborhoods, New York\n \"Arcturus\", // locations\n \"Aries\", // cars, vehicles\n \"Arlen\", // musicians, people\n \"Audi TT\", // cars, vehicles\n \"automat\", // common nouns\n \"baion\", // adjectives, music\n \"Bakersfield\", // cities, locations\n \"banyan\", // common nouns, plants\n \"barrio\", // common nouns, loanwords\n \"Barrytown\", // locations, neighborhoods, New York\n \"battle apple\", // arms, common nouns, made-up, weapons\n \"Biscayne Bay\", // locations\n \"bivouac\", // common nouns, loanwords\n \"black cow\", // common nouns, drinks\n \"Blazer\", // cars, vehicles\n \"Bleecker Street\", // locations, New York, streets\n \"bodhisattva\", // common nouns, loanwords, spiritual\n \"bon marché\", // common nouns, loanwords\n \"Brentwood\", // locations, neighborhoods\n \"Brubeck\", // musicians, people\n \"Brut\", // brands\n \"Camarillo\", // cities, locations\n \"capris\", // attires, common nouns\n \"Castle Bravo\", // arms, Cold War\n \"catbird seat\", // common nouns\n \"Cathy Berberian\", // musicians, people\n \"chase the dragon\", // slangs, verbs\n \"cheaters\", // attires, common nouns\n \"Chesterfield Kings\", // brands, drugs\n \"chiba-chiba\", // common nouns, drugs, slangs\n \"city of St. John\", // locations\n \"Cobra gunship\", // arms, common nouns, weapons\n \"corncrib\", // common nouns\n \"Crimson Tide\", // nicknames\n \"Cuervo Gold\", // brands, drinks, drugs\n \"Culver City\", // locations, towns\n \"Custerdome\", // made-up\n \"cutouts\", // common nouns\n \"Dean & DeLuca\", // brands, establishments, restaurants\n \"derby hat\", // attires, common nouns\n \"dime dancing\", // common nouns\n \"Doctor Wu\", // people\n \"Eames chair\", // common nouns\n \"East Paterson\", // locations, towns\n \"Eastern Parkway\", // locations, New York, streets\n \"Eden Rock\", // establishments\n \"Eldorado\", // cars, vehicles\n \"Elsinore\", // cities, locations\n \"Erzulie\", // spiritual\n \"fez\", // attires, common nouns\n \"'54 Strat\", // music\n \"Florida room\", // common nouns\n \"French twist\", // attires, common nouns\n \"g'wine\", // slangs, verbs\n \"gas centrifuge\", // common nouns\n \"gaslighting\", // verbs\n \"gaucho\", // common nouns, loanwords\n \"Gladstone bag\", // common nouns\n \"Gramercy Park\", // locations, New York\n \"grok\", // slangs, verbs\n \"Guadalajara\", // cities, locations\n \"Hackensack\", // cities, locations\n \"Haitian divorce\", // slangs\n \"Hello Kitty\", // brands\n \"I.G.Y.\", // Cold War, science\n \"IHOP\", // brands, establishments, restaurants\n \"ikat\", // common nouns\n \"inside straight\", // common nouns\n \"Jackson\", // slangs\n \"Jane Street\", // locations, New York, streets\n \"Jill St. John\", // people\n \"Jungle Jim\", // nicknames, people\n \"kirschwasser\", // common nouns, drinks, drugs, loanwords\n \"Kiss Me Deadly\", // media references\n \"KLH\", // brands\n \"Kundalini\", // common nouns, loanwords, spiritual\n \"lachrymose\", // adjectives\n \"Lark\", // cars, vehicles\n \"Lhasa\", // cities, locations\n \"Lincoln Town Car\", // cars, vehicles\n \"Little Eva\", // musicians, people\n \"Lost Wages\", // media references\n \"Luger\", // arms, common nouns, weapons\n \"masissi\", // common nouns, loanwords, slangs\n \"Medicine Park\", // locations, towns\n \"merengue\", // common nouns, music\n \"mini-Glock\", // arms, common nouns, weapons\n \"Mizar\", // locations\n \"Monkey Time\", // media references\n \"Moon Pie\", // brands\n \"moray eel\", // common nouns\n \"Mount Savage\", // locations, towns\n \"Mr. Chow\", // establishments, restaurants\n \"Mr. Parker\", // musicians, people\n \"muscatel\", // common nouns, drinks, drugs\n \"Muswellbrook\", // locations, towns\n \"New Frontier\", // Cold War\n \"New Hyde Park\", // locations, New York\n \"Nino's\", // establishments, restaurants\n \"oleander\", // common nouns, plants\n \"package store\", // common nouns\n \"Packard\", // brands, cars, vehicles\n \"panatela\", // common nouns, drugs\n \"Philly Dog\", // music\n \"piaster\", // common nouns\n \"pin shot\", // common nouns, made-up\n \"prickly pear\", // common nouns, plants\n \"Rabelaisian\", // adjectives\n \"Radio City\", // establishments\n \"Raelettes\", // musicians\n \"Red Hook\", // locations, towns\n \"Red Hots\", // brands\n \"retsina\", // common nouns, drinks, drugs\n \"rinkydink\", // adjectives\n \"Roppongi\", // locations\n \"roulade\", // common nouns, music\n \"Rudy's\", // establishments, restaurants\n \"Santa Ana winds\", // science\n \"Savoy sides\", // brands\n \"Scarsdale\", // locations, New York, towns\n \"Sheridan Square\", // locations, New York\n \"skeevy\", // adjectives, slangs\n \"smoker\", // common nouns, slangs\n \"squonk\", // common nouns\n \"Stanyan Street\", // locations, streets\n \"Steely Dan\", // media references\n \"Strand\", // establishments\n \"Sunset\", // locations, streets\n \"Sutton Place\", // locations, neighborhoods, New York\n \"Tanqueray\", // brands, drinks, drugs\n \"Tenderloin\", // locations, neighborhoods, New York\n \"TJ\", // locations, nicknames\n \"Tompkins Square\", // locations, New York\n \"tracer rounds\", // arms, common nouns\n \"trading fours\", // music, verbs\n \"Tuesday Weld\", // people\n \"William and Mary\", // establishments\n \"wing chair\", // common nouns\n \"wingding\", // common nouns, slangs\n \"Wolverine\", // vehicles\n \"zero crossing\", // common nouns, science\n \"Ziegfield\", // people\n \"zombie\" // common nouns, drinks, drugs\n]\n","export default {\n \"a\": 0,\n \"b\": 12,\n \"c\": 28,\n \"d\": 45,\n \"e\": 49,\n \"f\": 56,\n \"g\": 60,\n \"h\": 68,\n \"i\": 71,\n \"j\": 75,\n \"k\": 79,\n \"l\": 83,\n \"m\": 90,\n \"n\": 103,\n \"o\": 106,\n \"p\": 107,\n \"r\": 114,\n \"s\": 124,\n \"t\": 136,\n \"w\": 143,\n \"z\": 147\n}\n","export default\n[12, 83, 114, 120, 128]\n","export default\n[17, 30, 38, 89, 93, 140]\n","export default\n[29, 34, 46, 56, 59]\n","export default\n[3, 27, 35, 41, 45, 70, 72, 81, 96, 108, 118, 125, 136]\n","export default\n[8, 10, 21, 53, 84, 86, 108]\n","export default\n[13, 28, 54, 67, 68, 85]\n","export default\n[30, 71, 103]\n","export default\n[0, 4, 11, 14, 15, 17, 19, 20, 23, 24, 29, 31, 34, 36, 38, 39, 44, 46, 47, 49, 56, 58, 59, 61, 63, 64, 73, 74, 79, 82,\n89, 92, 93, 97, 101, 106, 107, 109, 111, 112, 113, 119, 122, 129, 130, 140, 144, 145, 147, 149]\n","export default\n[1, 20, 41, 79, 101, 119, 136, 149]\n","export default\n[1, 35, 36, 41, 79, 101, 109, 119, 136, 149]\n","export default\n[45, 52, 72, 99, 105, 115, 123, 133, 143]\n","export default\n[15, 19, 23, 24, 63, 79, 82, 90]\n","export default\n[2, 6, 7, 13, 16, 18, 22, 25, 28, 37, 42, 50, 51, 54, 65, 67, 68, 76, 85, 91, 94, 98, 102, 104, 117, 121, 126, 127,\n131, 134, 135, 137, 138, 139]\n","export default\n[17, 43, 112]\n","export default\n[80, 88, 95, 132]\n","export default\n[12, 57, 92, 110, 122, 141]\n","export default\n[9, 26, 32, 87, 100, 116]\n","export default\n[6, 16, 25, 135, 137]\n","export default\n[6, 16, 22, 51, 65, 76, 104, 126, 127, 135, 137, 139]\n","export default\n[40, 78, 138]\n","export default\n[9, 26, 32, 48, 77, 78, 87, 100, 142, 148]\n","export default\n[14, 106, 113]\n","export default\n[45, 72, 99, 105, 123]\n","export default\n[71, 124, 147]\n","export default\n[33, 36, 60, 66, 69, 75, 90, 128, 129, 145]\n","export default\n[4, 23, 55, 82]\n","export default\n[22, 51, 76, 131, 134]\n","export default\n[42, 50, 91, 98, 102, 117, 126]\n","export default\n[5, 8, 10, 21, 53, 84, 86, 108, 146]\n","export default\n[35, 60, 62, 66, 141]\n","export default\n[17, 38, 89, 93]\n","import list from \"./data/list.js\";\nimport letterIndex from \"./data/letter-index.js\";\nimport adjectivesIndices from \"./data/indices/adjectives.js\";\nimport armsIndices from \"./data/indices/arms.js\";\nimport attiresIndices from \"./data/indices/attires.js\";\nimport brandsIndices from \"./data/indices/brands.js\";\nimport carsIndices from \"./data/indices/cars.js\";\nimport citiesIndices from \"./data/indices/cities.js\";\nimport coldWarIndices from \"./data/indices/cold-war.js\";\nimport commonNounsIndices from \"./data/indices/common-nouns.js\";\nimport drinksIndices from \"./data/indices/drinks.js\";\nimport drugsIndices from \"./data/indices/drugs.js\";\nimport establishmentsIndices from \"./data/indices/establishments.js\";\nimport loanwordsIndices from \"./data/indices/loanwords.js\";\nimport locationsIndices from \"./data/indices/locations.js\";\nimport madeUpIndices from \"./data/indices/made-up.js\";\nimport mediaReferencesIndices from \"./data/indices/media-references.js\";\nimport musicIndices from \"./data/indices/music.js\";\nimport musiciansIndices from \"./data/indices/musicians.js\";\nimport neighborhoodsIndices from \"./data/indices/neighborhoods.js\";\nimport newYorkIndices from \"./data/indices/new-york.js\";\nimport nicknamesIndices from \"./data/indices/nicknames.js\";\nimport peopleIndices from \"./data/indices/people.js\";\nimport plantsIndices from \"./data/indices/plants.js\";\nimport restaurantsIndices from \"./data/indices/restaurants.js\";\nimport scienceIndices from \"./data/indices/science.js\";\nimport slangsIndices from \"./data/indices/slangs.js\";\nimport spiritualIndices from \"./data/indices/spiritual.js\";\nimport streetsIndices from \"./data/indices/streets.js\";\nimport townsIndices from \"./data/indices/towns.js\";\nimport vehiclesIndices from \"./data/indices/vehicles.js\";\nimport verbsIndices from \"./data/indices/verbs.js\";\nimport weaponsIndices from \"./data/indices/weapons.js\";\n\n/**\n * A Steely Dan word catalog\n */\nexport default class MajorWords {\n /**\n * @returns {string[]} All words\n */\n static get all() { return list }\n\n /**\n * @param {string} letter - A single letter\n * @returns {string[]} Words starting with letter\n */\n static startingWith(letter) {\n if (letter.length !== 1 || !letter.match(/[a-z]/i)) throw new Error(\"Argument must be a single letter\");\n\n letter = letter.toLowerCase();\n\n const startIndex = letterIndex[letter];\n\n if (startIndex === undefined) return []; // no words starting with the given letter\n\n const letters = Object.keys(letterIndex);\n const nextLetter = letters.at(letters.indexOf(letter) + 1);\n const endIndex = letterIndex[nextLetter];\n\n return list.slice(startIndex, endIndex);\n }\n\n /**\n * @returns {string[]} All adjectives in word list\n */\n static get adjectives() { return this.#wordsAtIndices(adjectivesIndices) }\n\n /**\n * @returns {string[]} All arms-related terms in word list\n */\n static get arms() { return this.#wordsAtIndices(armsIndices) }\n\n /**\n * @returns {string[]} All attires in word list\n */\n static get attires() { return this.#wordsAtIndices(attiresIndices) }\n\n /**\n * @returns {string[]} All brands in word list\n */\n static get brands() { return this.#wordsAtIndices(brandsIndices) }\n\n /**\n * @returns {string[]} All cars in word list\n */\n static get cars() { return this.#wordsAtIndices(carsIndices) }\n\n /**\n * @returns {string[]} All city names in word list\n */\n static get cities() { return this.#wordsAtIndices(citiesIndices) }\n\n /**\n * @returns {string[]} All Cold War-related terms in word list\n */\n static get coldWar() { return this.#wordsAtIndices(coldWarIndices) }\n\n /**\n * @returns {string[]} All drinks in word list\n */\n static get drinks() { return this.#wordsAtIndices(drinksIndices) }\n\n /**\n * @returns {string[]} All drugs in word list\n */\n static get drugs() { return this.#wordsAtIndices(drugsIndices) }\n\n /**\n * @returns {string[]} All establishments in word list\n */\n static get establishments() { return this.#wordsAtIndices(establishmentsIndices) }\n\n /**\n * @returns {string[]} All loanwords in word list\n */\n static get loanwords() { return this.#wordsAtIndices(loanwordsIndices) }\n\n /**\n * @returns {string[]} All locations in word list\n */\n static get locations() { return this.#wordsAtIndices(locationsIndices) }\n\n /**\n * @returns {string[]} All made-up terms by Steely Dan in word list\n */\n static get madeUp() { return this.#wordsAtIndices(madeUpIndices) }\n\n /**\n * @returns {string[]} All media references in word list\n */\n static get mediaReferences() { return this.#wordsAtIndices(mediaReferencesIndices) }\n\n /**\n * @returns {string[]} All music-related terms in word list\n */\n static get music() { return this.#wordsAtIndices(musicIndices) }\n\n /**\n * @returns {string[]} All names of real musicians in word list\n */\n static get musicians() { return this.#wordsAtIndices(musiciansIndices) }\n\n /**\n * @returns {string[]} All neighborhoods in word list\n */\n static get neighborhoods() { return this.#wordsAtIndices(neighborhoodsIndices) }\n\n /**\n * @returns {string[]} All locations within New York State in word list\n */\n static get newYork() { return this.#wordsAtIndices(newYorkIndices) }\n\n /**\n * @returns {string[]} All nicknames in word list\n */\n static get nicknames() { return this.#wordsAtIndices(nicknamesIndices) }\n\n /**\n * @returns {string[]} All common nouns in word list\n */\n static get nouns() { return this.#wordsAtIndices(commonNounsIndices) }\n\n /**\n * @returns {string[]} All names of real people in word list\n */\n static get people() { return this.#wordsAtIndices(peopleIndices) }\n\n /**\n * @returns {string[]} All plants in word list\n */\n static get plants() { return this.#wordsAtIndices(plantsIndices) }\n\n /**\n * @returns {string[]} All restaurants in word list\n */\n static get restaurants() { return this.#wordsAtIndices(restaurantsIndices) }\n\n /**\n * @returns {string[]} All science-related terms in word list\n */\n static get science() { return this.#wordsAtIndices(scienceIndices) }\n\n /**\n * @returns {string[]} All slangs in word list\n */\n static get slangs() { return this.#wordsAtIndices(slangsIndices) }\n\n /**\n * @returns {string[]} All spiritual words in word list\n */\n static get spiritual() { return this.#wordsAtIndices(spiritualIndices) }\n\n /**\n * @returns {string[]} All street names in word list\n */\n static get streets() { return this.#wordsAtIndices(streetsIndices) }\n\n /**\n * @returns {string[]} All town names in word list\n */\n static get towns() { return this.#wordsAtIndices(townsIndices) }\n\n /**\n * @returns {string[]} All vehicles in word list\n */\n static get vehicles() { return this.#wordsAtIndices(vehiclesIndices) }\n\n /**\n * @returns {string[]} All verbs in word list\n */\n static get verbs() { return this.#wordsAtIndices(verbsIndices) }\n\n /**\n * @returns {string[]} All weapons in word list\n */\n static get weapons() { return this.#wordsAtIndices(weaponsIndices) }\n\n // private\n /**\n * @param {number[]} indices - Indices of words\n * @returns {string[]} Words at indices\n */\n static #wordsAtIndices(indices) { return indices.map(index => list[index]) }\n}\n"],"names":["list","letterIndex","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","r","s","t","w","z","adjectivesIndices","armsIndices","attiresIndices","brandsIndices","carsIndices","citiesIndices","coldWarIndices","commonNounsIndices","drinksIndices","drugsIndices","establishmentsIndices","loanwordsIndices","locationsIndices","madeUpIndices","mediaReferencesIndices","musicIndices","musiciansIndices","neighborhoodsIndices","newYorkIndices","nicknamesIndices","peopleIndices","plantsIndices","restaurantsIndices","scienceIndices","slangsIndices","spiritualIndices","streetsIndices","townsIndices","vehiclesIndices","verbsIndices","weaponsIndices","_wordsAtIndices","_classPrivateFieldLooseKey","MajorWords","_createClass","startingWith","letter","length","match","Error","toLowerCase","startIndex","undefined","letters","Object","keys","nextLetter","at","indexOf","slice","key","get","_classPrivateFieldLooseBase","this","defineProperty","value","indices","map","index"],"mappings":"idAAA,IAAAA,EAAe,CACb,UACA,gBACA,WACA,SACA,cACA,eACA,YACA,WACA,QACA,QACA,UACA,UACA,QACA,cACA,SACA,SACA,YACA,eACA,eACA,UACA,YACA,SACA,kBACA,cACA,aACA,YACA,UACA,OACA,YACA,SACA,eACA,eACA,kBACA,mBACA,WACA,qBACA,cACA,mBACA,gBACA,WACA,eACA,cACA,cACA,aACA,UACA,gBACA,YACA,eACA,YACA,cACA,gBACA,kBACA,YACA,WACA,WACA,UACA,MACA,YACA,eACA,eACA,SACA,iBACA,cACA,SACA,gBACA,gBACA,OACA,cACA,aACA,kBACA,cACA,SACA,OACA,OACA,kBACA,UACA,cACA,gBACA,aACA,eACA,iBACA,MACA,YACA,aACA,OACA,QACA,mBACA,aACA,aACA,QACA,UACA,gBACA,WACA,aACA,QACA,cACA,WACA,YACA,eACA,WACA,aACA,WACA,eACA,eACA,gBACA,SACA,WACA,gBACA,UACA,WACA,aACA,UACA,WACA,eACA,cACA,aACA,YACA,WACA,WACA,UACA,YACA,WACA,UACA,SACA,kBACA,cACA,YACA,kBACA,SACA,SACA,SACA,iBACA,aACA,SACA,SACA,eACA,YACA,aACA,KACA,kBACA,gBACA,gBACA,eACA,mBACA,aACA,WACA,YACA,gBACA,YACA,UCtJFC,EAAe,CACbC,EAAK,EACLC,EAAK,GACLC,EAAK,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GAAC,CAAA0B,IAAA,YAAAC,IAKlE,WAAyB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBN,EAAkB,GAACyB,CAAAA,IAAAC,UAAAA,IAKxE,WAAuB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBL,EAAgB,GAAC,CAAAwB,IAAA,QAAAC,IAKpE,WAAqB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBJ,EAAc,GAACuB,CAAAA,IAAAC,WAAAA,IAKhE,WAAwB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBH,EAAiB,GAAC,CAAAsB,IAAA,QAAAC,IAKtE,WAAqB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBF,EAAc,GAACqB,CAAAA,IAAAC,UAAAA,IAKhE,WAAuB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBD,EAAgB,+OAAC,CAnLvCG,GA0LiDW,OAAAU,eA1L3DrB,EAAUF,EAAAwB,CAAAA,MAmLuC,SAO3CC,GAAW,OAAOA,EAAQC,IAAI,SAAAC,GAAS,OAAAjF,EAAKiF,EAAM,EAAE"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e||self).majorWords=t()}(this,function(){function e(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var t=0;function n(e){return"__private_"+t+++"_"+e}function r(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var i=["A-frame","Alsatian wine","Altamira","Ambush","amen corner","Andrea Doria","Annandale","Arcturus","Aries","Arlen","Audi TT","automat","baion","Bakersfield","banyan","barrio","Barrytown","battle apple","Biscayne Bay","bivouac","black cow","Blazer","Bleecker Street","bodhisattva","bon marché","Brentwood","Brubeck","Brut","Camarillo","capris","Castle Bravo","catbird seat","Cathy Berberian","chase the dragon","cheaters","Chesterfield Kings","chiba-chiba","city of St. John","Cobra gunship","corncrib","Crimson Tide","Cuervo Gold","Culver City","Custerdome","cutouts","Dean & DeLuca","derby hat","dime dancing","Doctor Wu","Eames chair","East Paterson","Eastern Parkway","Eden Rock","Eldorado","Elsinore","Erzulie","fez","'54 Strat","Florida room","French twist","g'wine","gas centrifuge","gaslighting","gaucho","Gladstone bag","Gramercy Park","grok","Guadalajara","Hackensack","Haitian divorce","Hello Kitty","I.G.Y.","IHOP","ikat","inside straight","Jackson","Jane Street","Jill St. John","Jungle Jim","kirschwasser","Kiss Me Deadly","KLH","Kundalini","lachrymose","Lark","Lhasa","Lincoln Town Car","Little Eva","Lost Wages","Luger","masissi","Medicine Park","merengue","mini-Glock","Mizar","Monkey Time","Moon Pie","moray eel","Mount Savage","Mr. Chow","Mr. Parker","muscatel","Muswellbrook","New Frontier","New Hyde Park","Nino's","oleander","package store","Packard","panatela","Philly Dog","piaster","pin shot","prickly pear","Rabelaisian","Radio City","Raelettes","Red Hook","Red Hots","retsina","rinkydink","Roppongi","roulade","Rudy's","Santa Ana winds","Savoy sides","Scarsdale","Sheridan Square","skeevy","smoker","squonk","Stanyan Street","Steely Dan","Strand","Sunset","Sutton Place","Tanqueray","Tenderloin","TJ","Tompkins Square","tracer rounds","trading fours","Tuesday Weld","William and Mary","wing chair","wingding","Wolverine","zero crossing","Ziegfield","zombie"],a={a:0,b:12,c:28,d:45,e:49,f:56,g:60,h:68,i:71,j:75,k:79,l:83,m:90,n:103,o:106,p:107,r:114,s:124,t:136,w:143,z:147},o=[12,83,114,120,128],s=[17,30,38,89,93,140],u=[29,34,46,56,59],c=[3,27,35,41,45,70,72,81,96,108,118,125,136],l=[8,10,21,53,84,86,108],f=[13,28,54,67,68,85],d=[30,71,103],y=[0,4,11,14,15,17,19,20,23,24,29,31,34,36,38,39,44,46,47,49,56,58,59,61,63,64,73,74,79,82,89,92,93,97,101,106,107,109,111,112,113,119,122,129,130,140,144,145,147,149],g=[1,20,41,79,101,119,136,149],h=[1,35,36,41,79,101,109,119,136,149],k=[45,52,72,99,105,115,123,133,143],m=[15,19,23,24,63,79,82,90],b=[2,6,7,13,16,18,22,25,28,37,42,50,51,54,65,67,68,76,85,91,94,98,102,104,117,121,126,127,131,134,135,137,138,139],p=[17,43,112],v=[80,88,95,132],w=[12,57,92,110,122,141],S=[9,26,32,87,100,116],P=[6,16,25,135,137],C=[6,16,22,51,65,76,104,126,127,135,137,139],T=[40,78,138],A=[9,26,32,48,77,78,87,100,142,148],j=[14,106,113],B=[45,72,99,105,123],E=[71,124,147],M=[33,36,60,66,69,75,90,128,129,145],L=[4,23,55,82],R=[22,51,76,131,134],z=[42,50,91,98,102,117,126],H=[5,8,10,21,53,84,86,108,146],J=[35,60,62,66,141],W=[17,38,89,93],D=/*#__PURE__*/n("wordsAtIndices"),O=/*#__PURE__*/function(){function t(){}return t.startingWith=function(e){if(1!==e.length||!e.match(/[a-z]/i))throw new Error("Argument must be a single letter");e=e.toLowerCase();var t=a[e];if(void 0===t)return[];var n=Object.keys(a),r=n.at(n.indexOf(e)+1);return i.slice(t,a[r])},n=t,(O=[{key:"all",get:function(){return i}},{key:"adjectives",get:function(){return e(this,D)[D](o)}},{key:"arms",get:function(){return e(this,D)[D](s)}},{key:"attires",get:function(){return e(this,D)[D](u)}},{key:"brands",get:function(){return e(this,D)[D](c)}},{key:"cars",get:function(){return e(this,D)[D](l)}},{key:"cities",get:function(){return e(this,D)[D](f)}},{key:"coldWar",get:function(){return e(this,D)[D](d)}},{key:"drinks",get:function(){return e(this,D)[D](g)}},{key:"drugs",get:function(){return e(this,D)[D](h)}},{key:"establishments",get:function(){return e(this,D)[D](k)}},{key:"loanwords",get:function(){return e(this,D)[D](m)}},{key:"locations",get:function(){return e(this,D)[D](b)}},{key:"madeUp",get:function(){return e(this,D)[D](p)}},{key:"mediaReferences",get:function(){return e(this,D)[D](v)}},{key:"music",get:function(){return e(this,D)[D](w)}},{key:"musicians",get:function(){return e(this,D)[D](S)}},{key:"neighborhoods",get:function(){return e(this,D)[D](P)}},{key:"newYork",get:function(){return e(this,D)[D](C)}},{key:"nicknames",get:function(){return e(this,D)[D](T)}},{key:"nouns",get:function(){return e(this,D)[D](y)}},{key:"people",get:function(){return e(this,D)[D](A)}},{key:"plants",get:function(){return e(this,D)[D](j)}},{key:"restaurants",get:function(){return e(this,D)[D](B)}},{key:"science",get:function(){return e(this,D)[D](E)}},{key:"slangs",get:function(){return e(this,D)[D](M)}},{key:"spiritual",get:function(){return e(this,D)[D](L)}},{key:"streets",get:function(){return e(this,D)[D](R)}},{key:"towns",get:function(){return e(this,D)[D](z)}},{key:"vehicles",get:function(){return e(this,D)[D](H)}},{key:"verbs",get:function(){return e(this,D)[D](J)}},{key:"weapons",get:function(){return e(this,D)[D](W)}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}(n,O),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,O}();return Object.defineProperty(O,D,{value:function(e){return e.map(function(e){return i[e]})}}),O});
|
|
2
|
+
//# sourceMappingURL=index.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":["../src/data/list.js","../src/data/letter-index.js","../src/data/indices/adjectives.js","../src/data/indices/arms.js","../src/data/indices/attires.js","../src/data/indices/brands.js","../src/data/indices/cars.js","../src/data/indices/cities.js","../src/data/indices/cold-war.js","../src/data/indices/common-nouns.js","../src/data/indices/drinks.js","../src/data/indices/drugs.js","../src/data/indices/establishments.js","../src/data/indices/loanwords.js","../src/data/indices/locations.js","../src/data/indices/made-up.js","../src/data/indices/media-references.js","../src/data/indices/music.js","../src/data/indices/musicians.js","../src/data/indices/neighborhoods.js","../src/data/indices/new-york.js","../src/data/indices/nicknames.js","../src/data/indices/people.js","../src/data/indices/plants.js","../src/data/indices/restaurants.js","../src/data/indices/science.js","../src/data/indices/slangs.js","../src/data/indices/spiritual.js","../src/data/indices/streets.js","../src/data/indices/towns.js","../src/data/indices/vehicles.js","../src/data/indices/verbs.js","../src/data/indices/weapons.js","../src/index.js"],"sourcesContent":["export default [\n \"A-frame\", // common nouns\n \"Alsatian wine\", // drinks, drugs\n \"Altamira\", // locations\n \"Ambush\", // brands\n \"amen corner\", // common nouns, spiritual\n \"Andrea Doria\", // vehicles\n \"Annandale\", // locations, neighborhoods, New York\n \"Arcturus\", // locations\n \"Aries\", // cars, vehicles\n \"Arlen\", // musicians, people\n \"Audi TT\", // cars, vehicles\n \"automat\", // common nouns\n \"baion\", // adjectives, music\n \"Bakersfield\", // cities, locations\n \"banyan\", // common nouns, plants\n \"barrio\", // common nouns, loanwords\n \"Barrytown\", // locations, neighborhoods, New York\n \"battle apple\", // arms, common nouns, made-up, weapons\n \"Biscayne Bay\", // locations\n \"bivouac\", // common nouns, loanwords\n \"black cow\", // common nouns, drinks\n \"Blazer\", // cars, vehicles\n \"Bleecker Street\", // locations, New York, streets\n \"bodhisattva\", // common nouns, loanwords, spiritual\n \"bon marché\", // common nouns, loanwords\n \"Brentwood\", // locations, neighborhoods\n \"Brubeck\", // musicians, people\n \"Brut\", // brands\n \"Camarillo\", // cities, locations\n \"capris\", // attires, common nouns\n \"Castle Bravo\", // arms, Cold War\n \"catbird seat\", // common nouns\n \"Cathy Berberian\", // musicians, people\n \"chase the dragon\", // slangs, verbs\n \"cheaters\", // attires, common nouns\n \"Chesterfield Kings\", // brands, drugs\n \"chiba-chiba\", // common nouns, drugs, slangs\n \"city of St. John\", // locations\n \"Cobra gunship\", // arms, common nouns, weapons\n \"corncrib\", // common nouns\n \"Crimson Tide\", // nicknames\n \"Cuervo Gold\", // brands, drinks, drugs\n \"Culver City\", // locations, towns\n \"Custerdome\", // made-up\n \"cutouts\", // common nouns\n \"Dean & DeLuca\", // brands, establishments, restaurants\n \"derby hat\", // attires, common nouns\n \"dime dancing\", // common nouns\n \"Doctor Wu\", // people\n \"Eames chair\", // common nouns\n \"East Paterson\", // locations, towns\n \"Eastern Parkway\", // locations, New York, streets\n \"Eden Rock\", // establishments\n \"Eldorado\", // cars, vehicles\n \"Elsinore\", // cities, locations\n \"Erzulie\", // spiritual\n \"fez\", // attires, common nouns\n \"'54 Strat\", // music\n \"Florida room\", // common nouns\n \"French twist\", // attires, common nouns\n \"g'wine\", // slangs, verbs\n \"gas centrifuge\", // common nouns\n \"gaslighting\", // verbs\n \"gaucho\", // common nouns, loanwords\n \"Gladstone bag\", // common nouns\n \"Gramercy Park\", // locations, New York\n \"grok\", // slangs, verbs\n \"Guadalajara\", // cities, locations\n \"Hackensack\", // cities, locations\n \"Haitian divorce\", // slangs\n \"Hello Kitty\", // brands\n \"I.G.Y.\", // Cold War, science\n \"IHOP\", // brands, establishments, restaurants\n \"ikat\", // common nouns\n \"inside straight\", // common nouns\n \"Jackson\", // slangs\n \"Jane Street\", // locations, New York, streets\n \"Jill St. John\", // people\n \"Jungle Jim\", // nicknames, people\n \"kirschwasser\", // common nouns, drinks, drugs, loanwords\n \"Kiss Me Deadly\", // media references\n \"KLH\", // brands\n \"Kundalini\", // common nouns, loanwords, spiritual\n \"lachrymose\", // adjectives\n \"Lark\", // cars, vehicles\n \"Lhasa\", // cities, locations\n \"Lincoln Town Car\", // cars, vehicles\n \"Little Eva\", // musicians, people\n \"Lost Wages\", // media references\n \"Luger\", // arms, common nouns, weapons\n \"masissi\", // common nouns, loanwords, slangs\n \"Medicine Park\", // locations, towns\n \"merengue\", // common nouns, music\n \"mini-Glock\", // arms, common nouns, weapons\n \"Mizar\", // locations\n \"Monkey Time\", // media references\n \"Moon Pie\", // brands\n \"moray eel\", // common nouns\n \"Mount Savage\", // locations, towns\n \"Mr. Chow\", // establishments, restaurants\n \"Mr. Parker\", // musicians, people\n \"muscatel\", // common nouns, drinks, drugs\n \"Muswellbrook\", // locations, towns\n \"New Frontier\", // Cold War\n \"New Hyde Park\", // locations, New York\n \"Nino's\", // establishments, restaurants\n \"oleander\", // common nouns, plants\n \"package store\", // common nouns\n \"Packard\", // brands, cars, vehicles\n \"panatela\", // common nouns, drugs\n \"Philly Dog\", // music\n \"piaster\", // common nouns\n \"pin shot\", // common nouns, made-up\n \"prickly pear\", // common nouns, plants\n \"Rabelaisian\", // adjectives\n \"Radio City\", // establishments\n \"Raelettes\", // musicians\n \"Red Hook\", // locations, towns\n \"Red Hots\", // brands\n \"retsina\", // common nouns, drinks, drugs\n \"rinkydink\", // adjectives\n \"Roppongi\", // locations\n \"roulade\", // common nouns, music\n \"Rudy's\", // establishments, restaurants\n \"Santa Ana winds\", // science\n \"Savoy sides\", // brands\n \"Scarsdale\", // locations, New York, towns\n \"Sheridan Square\", // locations, New York\n \"skeevy\", // adjectives, slangs\n \"smoker\", // common nouns, slangs\n \"squonk\", // common nouns\n \"Stanyan Street\", // locations, streets\n \"Steely Dan\", // media references\n \"Strand\", // establishments\n \"Sunset\", // locations, streets\n \"Sutton Place\", // locations, neighborhoods, New York\n \"Tanqueray\", // brands, drinks, drugs\n \"Tenderloin\", // locations, neighborhoods, New York\n \"TJ\", // locations, nicknames\n \"Tompkins Square\", // locations, New York\n \"tracer rounds\", // arms, common nouns\n \"trading fours\", // music, verbs\n \"Tuesday Weld\", // people\n \"William and Mary\", // establishments\n \"wing chair\", // common nouns\n \"wingding\", // common nouns, slangs\n \"Wolverine\", // vehicles\n \"zero crossing\", // common nouns, science\n \"Ziegfield\", // people\n \"zombie\" // common nouns, drinks, drugs\n]\n","export default {\n \"a\": 0,\n \"b\": 12,\n \"c\": 28,\n \"d\": 45,\n \"e\": 49,\n \"f\": 56,\n \"g\": 60,\n \"h\": 68,\n \"i\": 71,\n \"j\": 75,\n \"k\": 79,\n \"l\": 83,\n \"m\": 90,\n \"n\": 103,\n \"o\": 106,\n \"p\": 107,\n \"r\": 114,\n \"s\": 124,\n \"t\": 136,\n \"w\": 143,\n \"z\": 147\n}\n","export default\n[12, 83, 114, 120, 128]\n","export default\n[17, 30, 38, 89, 93, 140]\n","export default\n[29, 34, 46, 56, 59]\n","export default\n[3, 27, 35, 41, 45, 70, 72, 81, 96, 108, 118, 125, 136]\n","export default\n[8, 10, 21, 53, 84, 86, 108]\n","export default\n[13, 28, 54, 67, 68, 85]\n","export default\n[30, 71, 103]\n","export default\n[0, 4, 11, 14, 15, 17, 19, 20, 23, 24, 29, 31, 34, 36, 38, 39, 44, 46, 47, 49, 56, 58, 59, 61, 63, 64, 73, 74, 79, 82,\n89, 92, 93, 97, 101, 106, 107, 109, 111, 112, 113, 119, 122, 129, 130, 140, 144, 145, 147, 149]\n","export default\n[1, 20, 41, 79, 101, 119, 136, 149]\n","export default\n[1, 35, 36, 41, 79, 101, 109, 119, 136, 149]\n","export default\n[45, 52, 72, 99, 105, 115, 123, 133, 143]\n","export default\n[15, 19, 23, 24, 63, 79, 82, 90]\n","export default\n[2, 6, 7, 13, 16, 18, 22, 25, 28, 37, 42, 50, 51, 54, 65, 67, 68, 76, 85, 91, 94, 98, 102, 104, 117, 121, 126, 127,\n131, 134, 135, 137, 138, 139]\n","export default\n[17, 43, 112]\n","export default\n[80, 88, 95, 132]\n","export default\n[12, 57, 92, 110, 122, 141]\n","export default\n[9, 26, 32, 87, 100, 116]\n","export default\n[6, 16, 25, 135, 137]\n","export default\n[6, 16, 22, 51, 65, 76, 104, 126, 127, 135, 137, 139]\n","export default\n[40, 78, 138]\n","export default\n[9, 26, 32, 48, 77, 78, 87, 100, 142, 148]\n","export default\n[14, 106, 113]\n","export default\n[45, 72, 99, 105, 123]\n","export default\n[71, 124, 147]\n","export default\n[33, 36, 60, 66, 69, 75, 90, 128, 129, 145]\n","export default\n[4, 23, 55, 82]\n","export default\n[22, 51, 76, 131, 134]\n","export default\n[42, 50, 91, 98, 102, 117, 126]\n","export default\n[5, 8, 10, 21, 53, 84, 86, 108, 146]\n","export default\n[35, 60, 62, 66, 141]\n","export default\n[17, 38, 89, 93]\n","import list from \"./data/list.js\";\nimport letterIndex from \"./data/letter-index.js\";\nimport adjectivesIndices from \"./data/indices/adjectives.js\";\nimport armsIndices from \"./data/indices/arms.js\";\nimport attiresIndices from \"./data/indices/attires.js\";\nimport brandsIndices from \"./data/indices/brands.js\";\nimport carsIndices from \"./data/indices/cars.js\";\nimport citiesIndices from \"./data/indices/cities.js\";\nimport coldWarIndices from \"./data/indices/cold-war.js\";\nimport commonNounsIndices from \"./data/indices/common-nouns.js\";\nimport drinksIndices from \"./data/indices/drinks.js\";\nimport drugsIndices from \"./data/indices/drugs.js\";\nimport establishmentsIndices from \"./data/indices/establishments.js\";\nimport loanwordsIndices from \"./data/indices/loanwords.js\";\nimport locationsIndices from \"./data/indices/locations.js\";\nimport madeUpIndices from \"./data/indices/made-up.js\";\nimport mediaReferencesIndices from \"./data/indices/media-references.js\";\nimport musicIndices from \"./data/indices/music.js\";\nimport musiciansIndices from \"./data/indices/musicians.js\";\nimport neighborhoodsIndices from \"./data/indices/neighborhoods.js\";\nimport newYorkIndices from \"./data/indices/new-york.js\";\nimport nicknamesIndices from \"./data/indices/nicknames.js\";\nimport peopleIndices from \"./data/indices/people.js\";\nimport plantsIndices from \"./data/indices/plants.js\";\nimport restaurantsIndices from \"./data/indices/restaurants.js\";\nimport scienceIndices from \"./data/indices/science.js\";\nimport slangsIndices from \"./data/indices/slangs.js\";\nimport spiritualIndices from \"./data/indices/spiritual.js\";\nimport streetsIndices from \"./data/indices/streets.js\";\nimport townsIndices from \"./data/indices/towns.js\";\nimport vehiclesIndices from \"./data/indices/vehicles.js\";\nimport verbsIndices from \"./data/indices/verbs.js\";\nimport weaponsIndices from \"./data/indices/weapons.js\";\n\n/**\n * A Steely Dan word catalog\n */\nexport default class MajorWords {\n /**\n * @returns {string[]} All words\n */\n static get all() { return list }\n\n /**\n * @param {string} letter - A single letter\n * @returns {string[]} Words starting with letter\n */\n static startingWith(letter) {\n if (letter.length !== 1 || !letter.match(/[a-z]/i)) throw new Error(\"Argument must be a single letter\");\n\n letter = letter.toLowerCase();\n\n const startIndex = letterIndex[letter];\n\n if (startIndex === undefined) return []; // no words starting with the given letter\n\n const letters = Object.keys(letterIndex);\n const nextLetter = letters.at(letters.indexOf(letter) + 1);\n const endIndex = letterIndex[nextLetter];\n\n return list.slice(startIndex, endIndex);\n }\n\n /**\n * @returns {string[]} All adjectives in word list\n */\n static get adjectives() { return this.#wordsAtIndices(adjectivesIndices) }\n\n /**\n * @returns {string[]} All arms-related terms in word list\n */\n static get arms() { return this.#wordsAtIndices(armsIndices) }\n\n /**\n * @returns {string[]} All attires in word list\n */\n static get attires() { return this.#wordsAtIndices(attiresIndices) }\n\n /**\n * @returns {string[]} All brands in word list\n */\n static get brands() { return this.#wordsAtIndices(brandsIndices) }\n\n /**\n * @returns {string[]} All cars in word list\n */\n static get cars() { return this.#wordsAtIndices(carsIndices) }\n\n /**\n * @returns {string[]} All city names in word list\n */\n static get cities() { return this.#wordsAtIndices(citiesIndices) }\n\n /**\n * @returns {string[]} All Cold War-related terms in word list\n */\n static get coldWar() { return this.#wordsAtIndices(coldWarIndices) }\n\n /**\n * @returns {string[]} All drinks in word list\n */\n static get drinks() { return this.#wordsAtIndices(drinksIndices) }\n\n /**\n * @returns {string[]} All drugs in word list\n */\n static get drugs() { return this.#wordsAtIndices(drugsIndices) }\n\n /**\n * @returns {string[]} All establishments in word list\n */\n static get establishments() { return this.#wordsAtIndices(establishmentsIndices) }\n\n /**\n * @returns {string[]} All loanwords in word list\n */\n static get loanwords() { return this.#wordsAtIndices(loanwordsIndices) }\n\n /**\n * @returns {string[]} All locations in word list\n */\n static get locations() { return this.#wordsAtIndices(locationsIndices) }\n\n /**\n * @returns {string[]} All made-up terms by Steely Dan in word list\n */\n static get madeUp() { return this.#wordsAtIndices(madeUpIndices) }\n\n /**\n * @returns {string[]} All media references in word list\n */\n static get mediaReferences() { return this.#wordsAtIndices(mediaReferencesIndices) }\n\n /**\n * @returns {string[]} All music-related terms in word list\n */\n static get music() { return this.#wordsAtIndices(musicIndices) }\n\n /**\n * @returns {string[]} All names of real musicians in word list\n */\n static get musicians() { return this.#wordsAtIndices(musiciansIndices) }\n\n /**\n * @returns {string[]} All neighborhoods in word list\n */\n static get neighborhoods() { return this.#wordsAtIndices(neighborhoodsIndices) }\n\n /**\n * @returns {string[]} All locations within New York State in word list\n */\n static get newYork() { return this.#wordsAtIndices(newYorkIndices) }\n\n /**\n * @returns {string[]} All nicknames in word list\n */\n static get nicknames() { return this.#wordsAtIndices(nicknamesIndices) }\n\n /**\n * @returns {string[]} All common nouns in word list\n */\n static get nouns() { return this.#wordsAtIndices(commonNounsIndices) }\n\n /**\n * @returns {string[]} All names of real people in word list\n */\n static get people() { return this.#wordsAtIndices(peopleIndices) }\n\n /**\n * @returns {string[]} All plants in word list\n */\n static get plants() { return this.#wordsAtIndices(plantsIndices) }\n\n /**\n * @returns {string[]} All restaurants in word list\n */\n static get restaurants() { return this.#wordsAtIndices(restaurantsIndices) }\n\n /**\n * @returns {string[]} All science-related terms in word list\n */\n static get science() { return this.#wordsAtIndices(scienceIndices) }\n\n /**\n * @returns {string[]} All slangs in word list\n */\n static get slangs() { return this.#wordsAtIndices(slangsIndices) }\n\n /**\n * @returns {string[]} All spiritual words in word list\n */\n static get spiritual() { return this.#wordsAtIndices(spiritualIndices) }\n\n /**\n * @returns {string[]} All street names in word list\n */\n static get streets() { return this.#wordsAtIndices(streetsIndices) }\n\n /**\n * @returns {string[]} All town names in word list\n */\n static get towns() { return this.#wordsAtIndices(townsIndices) }\n\n /**\n * @returns {string[]} All vehicles in word list\n */\n static get vehicles() { return this.#wordsAtIndices(vehiclesIndices) }\n\n /**\n * @returns {string[]} All verbs in word list\n */\n static get verbs() { return this.#wordsAtIndices(verbsIndices) }\n\n /**\n * @returns {string[]} All weapons in word list\n */\n static get weapons() { return this.#wordsAtIndices(weaponsIndices) }\n\n // private\n /**\n * @param {number[]} indices - Indices of words\n * @returns {string[]} Words at indices\n */\n static #wordsAtIndices(indices) { return indices.map(index => list[index]) }\n}\n"],"names":["list","letterIndex","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","r","s","t","w","z","adjectivesIndices","armsIndices","attiresIndices","brandsIndices","carsIndices","citiesIndices","coldWarIndices","commonNounsIndices","drinksIndices","drugsIndices","establishmentsIndices","loanwordsIndices","locationsIndices","madeUpIndices","mediaReferencesIndices","musicIndices","musiciansIndices","neighborhoodsIndices","newYorkIndices","nicknamesIndices","peopleIndices","plantsIndices","restaurantsIndices","scienceIndices","slangsIndices","spiritualIndices","streetsIndices","townsIndices","vehiclesIndices","verbsIndices","weaponsIndices","_wordsAtIndices","_classPrivateFieldLooseKey","MajorWords","_createClass","startingWith","letter","length","match","Error","toLowerCase","startIndex","undefined","letters","Object","keys","nextLetter","at","indexOf","slice","key","get","_classPrivateFieldLooseBase","this","defineProperty","value","indices","map","index"],"mappings":"8qBAAA,IAAAA,EAAe,CACb,UACA,gBACA,WACA,SACA,cACA,eACA,YACA,WACA,QACA,QACA,UACA,UACA,QACA,cACA,SACA,SACA,YACA,eACA,eACA,UACA,YACA,SACA,kBACA,cACA,aACA,YACA,UACA,OACA,YACA,SACA,eACA,eACA,kBACA,mBACA,WACA,qBACA,cACA,mBACA,gBACA,WACA,eACA,cACA,cACA,aACA,UACA,gBACA,YACA,eACA,YACA,cACA,gBACA,kBACA,YACA,WACA,WACA,UACA,MACA,YACA,eACA,eACA,SACA,iBACA,cACA,SACA,gBACA,gBACA,OACA,cACA,aACA,kBACA,cACA,SACA,OACA,OACA,kBACA,UACA,cACA,gBACA,aACA,eACA,iBACA,MACA,YACA,aACA,OACA,QACA,mBACA,aACA,aACA,QACA,UACA,gBACA,WACA,aACA,QACA,cACA,WACA,YACA,eACA,WACA,aACA,WACA,eACA,eACA,gBACA,SACA,WACA,gBACA,UACA,WACA,aACA,UACA,WACA,eACA,cACA,aACA,YACA,WACA,WACA,UACA,YACA,WACA,UACA,SACA,kBACA,cACA,YACA,kBACA,SACA,S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AAAC,IAK5E,WAAuB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBR,EAAgB,GAAC2B,CAAAA,IAAAC,SAAAA,IAKpE,WAAsB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBP,EAAe,GAAC,CAAA0B,IAAA,YAAAC,IAKlE,WAAyB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBN,EAAkB,GAACyB,CAAAA,IAAAC,UAAAA,IAKxE,WAAuB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBL,EAAgB,GAAC,CAAAwB,IAAA,QAAAC,IAKpE,WAAqB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBJ,EAAc,GAACuB,CAAAA,IAAAC,WAAAA,IAKhE,WAAwB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBH,EAAiB,GAAC,CAAAsB,IAAA,QAAAC,IAKtE,WAAqB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBF,EAAc,GAACqB,CAAAA,IAAAC,UAAAA,IAKhE,WAAuB,OAAAC,EAAOC,KAAItB,GAAAA,GAAiBD,EAAgB,+OAAC,CAnLvCG,UA0LiDW,OAAAU,eA1L3DrB,EAAUF,EAAAwB,CAAAA,MAmLuC,SAO3CC,GAAW,OAAOA,EAAQC,IAAI,SAAAC,GAAS,OAAAjF,EAAKiF,EAAM,EAAE"}
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "major-words",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A catalog of Steely Dan's bizarro words, names, places and phrases",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Markus Midtlien Sigurdsen",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"steely dan",
|
|
9
|
+
"lyrics",
|
|
10
|
+
"words",
|
|
11
|
+
"catalog",
|
|
12
|
+
"list"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://github.com/msigurd/major-words",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/msigurd/major-words/issues"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/msigurd/major-words.git"
|
|
21
|
+
},
|
|
22
|
+
"type": "module",
|
|
23
|
+
"source": "src/index.js",
|
|
24
|
+
"exports": {
|
|
25
|
+
"require": "./dist/index.cjs",
|
|
26
|
+
"default": "./dist/index.modern.js"
|
|
27
|
+
},
|
|
28
|
+
"main": "./dist/index.cjs",
|
|
29
|
+
"module": "./dist/index.module.js",
|
|
30
|
+
"unpkg": "./dist/index.umd.js",
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "microbundle",
|
|
34
|
+
"dev": "microbundle watch"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"microbundle": "^0.15.1"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"a": 0,
|
|
3
|
+
"b": 12,
|
|
4
|
+
"c": 28,
|
|
5
|
+
"d": 45,
|
|
6
|
+
"e": 49,
|
|
7
|
+
"f": 56,
|
|
8
|
+
"g": 60,
|
|
9
|
+
"h": 68,
|
|
10
|
+
"i": 71,
|
|
11
|
+
"j": 75,
|
|
12
|
+
"k": 79,
|
|
13
|
+
"l": 83,
|
|
14
|
+
"m": 90,
|
|
15
|
+
"n": 103,
|
|
16
|
+
"o": 106,
|
|
17
|
+
"p": 107,
|
|
18
|
+
"r": 114,
|
|
19
|
+
"s": 124,
|
|
20
|
+
"t": 136,
|
|
21
|
+
"w": 143,
|
|
22
|
+
"z": 147
|
|
23
|
+
}
|
package/src/data/list.js
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
"A-frame", // common nouns
|
|
3
|
+
"Alsatian wine", // drinks, drugs
|
|
4
|
+
"Altamira", // locations
|
|
5
|
+
"Ambush", // brands
|
|
6
|
+
"amen corner", // common nouns, spiritual
|
|
7
|
+
"Andrea Doria", // vehicles
|
|
8
|
+
"Annandale", // locations, neighborhoods, New York
|
|
9
|
+
"Arcturus", // locations
|
|
10
|
+
"Aries", // cars, vehicles
|
|
11
|
+
"Arlen", // musicians, people
|
|
12
|
+
"Audi TT", // cars, vehicles
|
|
13
|
+
"automat", // common nouns
|
|
14
|
+
"baion", // adjectives, music
|
|
15
|
+
"Bakersfield", // cities, locations
|
|
16
|
+
"banyan", // common nouns, plants
|
|
17
|
+
"barrio", // common nouns, loanwords
|
|
18
|
+
"Barrytown", // locations, neighborhoods, New York
|
|
19
|
+
"battle apple", // arms, common nouns, made-up, weapons
|
|
20
|
+
"Biscayne Bay", // locations
|
|
21
|
+
"bivouac", // common nouns, loanwords
|
|
22
|
+
"black cow", // common nouns, drinks
|
|
23
|
+
"Blazer", // cars, vehicles
|
|
24
|
+
"Bleecker Street", // locations, New York, streets
|
|
25
|
+
"bodhisattva", // common nouns, loanwords, spiritual
|
|
26
|
+
"bon marché", // common nouns, loanwords
|
|
27
|
+
"Brentwood", // locations, neighborhoods
|
|
28
|
+
"Brubeck", // musicians, people
|
|
29
|
+
"Brut", // brands
|
|
30
|
+
"Camarillo", // cities, locations
|
|
31
|
+
"capris", // attires, common nouns
|
|
32
|
+
"Castle Bravo", // arms, Cold War
|
|
33
|
+
"catbird seat", // common nouns
|
|
34
|
+
"Cathy Berberian", // musicians, people
|
|
35
|
+
"chase the dragon", // slangs, verbs
|
|
36
|
+
"cheaters", // attires, common nouns
|
|
37
|
+
"Chesterfield Kings", // brands, drugs
|
|
38
|
+
"chiba-chiba", // common nouns, drugs, slangs
|
|
39
|
+
"city of St. John", // locations
|
|
40
|
+
"Cobra gunship", // arms, common nouns, weapons
|
|
41
|
+
"corncrib", // common nouns
|
|
42
|
+
"Crimson Tide", // nicknames
|
|
43
|
+
"Cuervo Gold", // brands, drinks, drugs
|
|
44
|
+
"Culver City", // locations, towns
|
|
45
|
+
"Custerdome", // made-up
|
|
46
|
+
"cutouts", // common nouns
|
|
47
|
+
"Dean & DeLuca", // brands, establishments, restaurants
|
|
48
|
+
"derby hat", // attires, common nouns
|
|
49
|
+
"dime dancing", // common nouns
|
|
50
|
+
"Doctor Wu", // people
|
|
51
|
+
"Eames chair", // common nouns
|
|
52
|
+
"East Paterson", // locations, towns
|
|
53
|
+
"Eastern Parkway", // locations, New York, streets
|
|
54
|
+
"Eden Rock", // establishments
|
|
55
|
+
"Eldorado", // cars, vehicles
|
|
56
|
+
"Elsinore", // cities, locations
|
|
57
|
+
"Erzulie", // spiritual
|
|
58
|
+
"fez", // attires, common nouns
|
|
59
|
+
"'54 Strat", // music
|
|
60
|
+
"Florida room", // common nouns
|
|
61
|
+
"French twist", // attires, common nouns
|
|
62
|
+
"g'wine", // slangs, verbs
|
|
63
|
+
"gas centrifuge", // common nouns
|
|
64
|
+
"gaslighting", // verbs
|
|
65
|
+
"gaucho", // common nouns, loanwords
|
|
66
|
+
"Gladstone bag", // common nouns
|
|
67
|
+
"Gramercy Park", // locations, New York
|
|
68
|
+
"grok", // slangs, verbs
|
|
69
|
+
"Guadalajara", // cities, locations
|
|
70
|
+
"Hackensack", // cities, locations
|
|
71
|
+
"Haitian divorce", // slangs
|
|
72
|
+
"Hello Kitty", // brands
|
|
73
|
+
"I.G.Y.", // Cold War, science
|
|
74
|
+
"IHOP", // brands, establishments, restaurants
|
|
75
|
+
"ikat", // common nouns
|
|
76
|
+
"inside straight", // common nouns
|
|
77
|
+
"Jackson", // slangs
|
|
78
|
+
"Jane Street", // locations, New York, streets
|
|
79
|
+
"Jill St. John", // people
|
|
80
|
+
"Jungle Jim", // nicknames, people
|
|
81
|
+
"kirschwasser", // common nouns, drinks, drugs, loanwords
|
|
82
|
+
"Kiss Me Deadly", // media references
|
|
83
|
+
"KLH", // brands
|
|
84
|
+
"Kundalini", // common nouns, loanwords, spiritual
|
|
85
|
+
"lachrymose", // adjectives
|
|
86
|
+
"Lark", // cars, vehicles
|
|
87
|
+
"Lhasa", // cities, locations
|
|
88
|
+
"Lincoln Town Car", // cars, vehicles
|
|
89
|
+
"Little Eva", // musicians, people
|
|
90
|
+
"Lost Wages", // media references
|
|
91
|
+
"Luger", // arms, common nouns, weapons
|
|
92
|
+
"masissi", // common nouns, loanwords, slangs
|
|
93
|
+
"Medicine Park", // locations, towns
|
|
94
|
+
"merengue", // common nouns, music
|
|
95
|
+
"mini-Glock", // arms, common nouns, weapons
|
|
96
|
+
"Mizar", // locations
|
|
97
|
+
"Monkey Time", // media references
|
|
98
|
+
"Moon Pie", // brands
|
|
99
|
+
"moray eel", // common nouns
|
|
100
|
+
"Mount Savage", // locations, towns
|
|
101
|
+
"Mr. Chow", // establishments, restaurants
|
|
102
|
+
"Mr. Parker", // musicians, people
|
|
103
|
+
"muscatel", // common nouns, drinks, drugs
|
|
104
|
+
"Muswellbrook", // locations, towns
|
|
105
|
+
"New Frontier", // Cold War
|
|
106
|
+
"New Hyde Park", // locations, New York
|
|
107
|
+
"Nino's", // establishments, restaurants
|
|
108
|
+
"oleander", // common nouns, plants
|
|
109
|
+
"package store", // common nouns
|
|
110
|
+
"Packard", // brands, cars, vehicles
|
|
111
|
+
"panatela", // common nouns, drugs
|
|
112
|
+
"Philly Dog", // music
|
|
113
|
+
"piaster", // common nouns
|
|
114
|
+
"pin shot", // common nouns, made-up
|
|
115
|
+
"prickly pear", // common nouns, plants
|
|
116
|
+
"Rabelaisian", // adjectives
|
|
117
|
+
"Radio City", // establishments
|
|
118
|
+
"Raelettes", // musicians
|
|
119
|
+
"Red Hook", // locations, towns
|
|
120
|
+
"Red Hots", // brands
|
|
121
|
+
"retsina", // common nouns, drinks, drugs
|
|
122
|
+
"rinkydink", // adjectives
|
|
123
|
+
"Roppongi", // locations
|
|
124
|
+
"roulade", // common nouns, music
|
|
125
|
+
"Rudy's", // establishments, restaurants
|
|
126
|
+
"Santa Ana winds", // science
|
|
127
|
+
"Savoy sides", // brands
|
|
128
|
+
"Scarsdale", // locations, New York, towns
|
|
129
|
+
"Sheridan Square", // locations, New York
|
|
130
|
+
"skeevy", // adjectives, slangs
|
|
131
|
+
"smoker", // common nouns, slangs
|
|
132
|
+
"squonk", // common nouns
|
|
133
|
+
"Stanyan Street", // locations, streets
|
|
134
|
+
"Steely Dan", // media references
|
|
135
|
+
"Strand", // establishments
|
|
136
|
+
"Sunset", // locations, streets
|
|
137
|
+
"Sutton Place", // locations, neighborhoods, New York
|
|
138
|
+
"Tanqueray", // brands, drinks, drugs
|
|
139
|
+
"Tenderloin", // locations, neighborhoods, New York
|
|
140
|
+
"TJ", // locations, nicknames
|
|
141
|
+
"Tompkins Square", // locations, New York
|
|
142
|
+
"tracer rounds", // arms, common nouns
|
|
143
|
+
"trading fours", // music, verbs
|
|
144
|
+
"Tuesday Weld", // people
|
|
145
|
+
"William and Mary", // establishments
|
|
146
|
+
"wing chair", // common nouns
|
|
147
|
+
"wingding", // common nouns, slangs
|
|
148
|
+
"Wolverine", // vehicles
|
|
149
|
+
"zero crossing", // common nouns, science
|
|
150
|
+
"Ziegfield", // people
|
|
151
|
+
"zombie" // common nouns, drinks, drugs
|
|
152
|
+
]
|
package/src/index.js
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import list from "./data/list.js";
|
|
2
|
+
import letterIndex from "./data/letter-index.js";
|
|
3
|
+
import adjectivesIndices from "./data/indices/adjectives.js";
|
|
4
|
+
import armsIndices from "./data/indices/arms.js";
|
|
5
|
+
import attiresIndices from "./data/indices/attires.js";
|
|
6
|
+
import brandsIndices from "./data/indices/brands.js";
|
|
7
|
+
import carsIndices from "./data/indices/cars.js";
|
|
8
|
+
import citiesIndices from "./data/indices/cities.js";
|
|
9
|
+
import coldWarIndices from "./data/indices/cold-war.js";
|
|
10
|
+
import commonNounsIndices from "./data/indices/common-nouns.js";
|
|
11
|
+
import drinksIndices from "./data/indices/drinks.js";
|
|
12
|
+
import drugsIndices from "./data/indices/drugs.js";
|
|
13
|
+
import establishmentsIndices from "./data/indices/establishments.js";
|
|
14
|
+
import loanwordsIndices from "./data/indices/loanwords.js";
|
|
15
|
+
import locationsIndices from "./data/indices/locations.js";
|
|
16
|
+
import madeUpIndices from "./data/indices/made-up.js";
|
|
17
|
+
import mediaReferencesIndices from "./data/indices/media-references.js";
|
|
18
|
+
import musicIndices from "./data/indices/music.js";
|
|
19
|
+
import musiciansIndices from "./data/indices/musicians.js";
|
|
20
|
+
import neighborhoodsIndices from "./data/indices/neighborhoods.js";
|
|
21
|
+
import newYorkIndices from "./data/indices/new-york.js";
|
|
22
|
+
import nicknamesIndices from "./data/indices/nicknames.js";
|
|
23
|
+
import peopleIndices from "./data/indices/people.js";
|
|
24
|
+
import plantsIndices from "./data/indices/plants.js";
|
|
25
|
+
import restaurantsIndices from "./data/indices/restaurants.js";
|
|
26
|
+
import scienceIndices from "./data/indices/science.js";
|
|
27
|
+
import slangsIndices from "./data/indices/slangs.js";
|
|
28
|
+
import spiritualIndices from "./data/indices/spiritual.js";
|
|
29
|
+
import streetsIndices from "./data/indices/streets.js";
|
|
30
|
+
import townsIndices from "./data/indices/towns.js";
|
|
31
|
+
import vehiclesIndices from "./data/indices/vehicles.js";
|
|
32
|
+
import verbsIndices from "./data/indices/verbs.js";
|
|
33
|
+
import weaponsIndices from "./data/indices/weapons.js";
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* A Steely Dan word catalog
|
|
37
|
+
*/
|
|
38
|
+
export default class MajorWords {
|
|
39
|
+
/**
|
|
40
|
+
* @returns {string[]} All words
|
|
41
|
+
*/
|
|
42
|
+
static get all() { return list }
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @param {string} letter - A single letter
|
|
46
|
+
* @returns {string[]} Words starting with letter
|
|
47
|
+
*/
|
|
48
|
+
static startingWith(letter) {
|
|
49
|
+
if (letter.length !== 1 || !letter.match(/[a-z]/i)) throw new Error("Argument must be a single letter");
|
|
50
|
+
|
|
51
|
+
letter = letter.toLowerCase();
|
|
52
|
+
|
|
53
|
+
const startIndex = letterIndex[letter];
|
|
54
|
+
|
|
55
|
+
if (startIndex === undefined) return []; // no words starting with the given letter
|
|
56
|
+
|
|
57
|
+
const letters = Object.keys(letterIndex);
|
|
58
|
+
const nextLetter = letters.at(letters.indexOf(letter) + 1);
|
|
59
|
+
const endIndex = letterIndex[nextLetter];
|
|
60
|
+
|
|
61
|
+
return list.slice(startIndex, endIndex);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @returns {string[]} All adjectives in word list
|
|
66
|
+
*/
|
|
67
|
+
static get adjectives() { return this.#wordsAtIndices(adjectivesIndices) }
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @returns {string[]} All arms-related terms in word list
|
|
71
|
+
*/
|
|
72
|
+
static get arms() { return this.#wordsAtIndices(armsIndices) }
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @returns {string[]} All attires in word list
|
|
76
|
+
*/
|
|
77
|
+
static get attires() { return this.#wordsAtIndices(attiresIndices) }
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @returns {string[]} All brands in word list
|
|
81
|
+
*/
|
|
82
|
+
static get brands() { return this.#wordsAtIndices(brandsIndices) }
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @returns {string[]} All cars in word list
|
|
86
|
+
*/
|
|
87
|
+
static get cars() { return this.#wordsAtIndices(carsIndices) }
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @returns {string[]} All city names in word list
|
|
91
|
+
*/
|
|
92
|
+
static get cities() { return this.#wordsAtIndices(citiesIndices) }
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @returns {string[]} All Cold War-related terms in word list
|
|
96
|
+
*/
|
|
97
|
+
static get coldWar() { return this.#wordsAtIndices(coldWarIndices) }
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @returns {string[]} All drinks in word list
|
|
101
|
+
*/
|
|
102
|
+
static get drinks() { return this.#wordsAtIndices(drinksIndices) }
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @returns {string[]} All drugs in word list
|
|
106
|
+
*/
|
|
107
|
+
static get drugs() { return this.#wordsAtIndices(drugsIndices) }
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @returns {string[]} All establishments in word list
|
|
111
|
+
*/
|
|
112
|
+
static get establishments() { return this.#wordsAtIndices(establishmentsIndices) }
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @returns {string[]} All loanwords in word list
|
|
116
|
+
*/
|
|
117
|
+
static get loanwords() { return this.#wordsAtIndices(loanwordsIndices) }
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @returns {string[]} All locations in word list
|
|
121
|
+
*/
|
|
122
|
+
static get locations() { return this.#wordsAtIndices(locationsIndices) }
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @returns {string[]} All made-up terms by Steely Dan in word list
|
|
126
|
+
*/
|
|
127
|
+
static get madeUp() { return this.#wordsAtIndices(madeUpIndices) }
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @returns {string[]} All media references in word list
|
|
131
|
+
*/
|
|
132
|
+
static get mediaReferences() { return this.#wordsAtIndices(mediaReferencesIndices) }
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @returns {string[]} All music-related terms in word list
|
|
136
|
+
*/
|
|
137
|
+
static get music() { return this.#wordsAtIndices(musicIndices) }
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @returns {string[]} All names of real musicians in word list
|
|
141
|
+
*/
|
|
142
|
+
static get musicians() { return this.#wordsAtIndices(musiciansIndices) }
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @returns {string[]} All neighborhoods in word list
|
|
146
|
+
*/
|
|
147
|
+
static get neighborhoods() { return this.#wordsAtIndices(neighborhoodsIndices) }
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @returns {string[]} All locations within New York State in word list
|
|
151
|
+
*/
|
|
152
|
+
static get newYork() { return this.#wordsAtIndices(newYorkIndices) }
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @returns {string[]} All nicknames in word list
|
|
156
|
+
*/
|
|
157
|
+
static get nicknames() { return this.#wordsAtIndices(nicknamesIndices) }
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @returns {string[]} All common nouns in word list
|
|
161
|
+
*/
|
|
162
|
+
static get nouns() { return this.#wordsAtIndices(commonNounsIndices) }
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @returns {string[]} All names of real people in word list
|
|
166
|
+
*/
|
|
167
|
+
static get people() { return this.#wordsAtIndices(peopleIndices) }
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @returns {string[]} All plants in word list
|
|
171
|
+
*/
|
|
172
|
+
static get plants() { return this.#wordsAtIndices(plantsIndices) }
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @returns {string[]} All restaurants in word list
|
|
176
|
+
*/
|
|
177
|
+
static get restaurants() { return this.#wordsAtIndices(restaurantsIndices) }
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @returns {string[]} All science-related terms in word list
|
|
181
|
+
*/
|
|
182
|
+
static get science() { return this.#wordsAtIndices(scienceIndices) }
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @returns {string[]} All slangs in word list
|
|
186
|
+
*/
|
|
187
|
+
static get slangs() { return this.#wordsAtIndices(slangsIndices) }
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @returns {string[]} All spiritual words in word list
|
|
191
|
+
*/
|
|
192
|
+
static get spiritual() { return this.#wordsAtIndices(spiritualIndices) }
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @returns {string[]} All street names in word list
|
|
196
|
+
*/
|
|
197
|
+
static get streets() { return this.#wordsAtIndices(streetsIndices) }
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* @returns {string[]} All town names in word list
|
|
201
|
+
*/
|
|
202
|
+
static get towns() { return this.#wordsAtIndices(townsIndices) }
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* @returns {string[]} All vehicles in word list
|
|
206
|
+
*/
|
|
207
|
+
static get vehicles() { return this.#wordsAtIndices(vehiclesIndices) }
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @returns {string[]} All verbs in word list
|
|
211
|
+
*/
|
|
212
|
+
static get verbs() { return this.#wordsAtIndices(verbsIndices) }
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* @returns {string[]} All weapons in word list
|
|
216
|
+
*/
|
|
217
|
+
static get weapons() { return this.#wordsAtIndices(weaponsIndices) }
|
|
218
|
+
|
|
219
|
+
// private
|
|
220
|
+
/**
|
|
221
|
+
* @param {number[]} indices - Indices of words
|
|
222
|
+
* @returns {string[]} Words at indices
|
|
223
|
+
*/
|
|
224
|
+
static #wordsAtIndices(indices) { return indices.map(index => list[index]) }
|
|
225
|
+
}
|