Rachel and Bing had a great idea to combine startup names by chaining prefix and suffix compounds. Hargobind and I developed an urge to write some code.
Install Node.js & NPM, then:
npm install
names.json
: JSON array of company names to usewords.json
: JSON array of acceptable prefix/suffixesnodes.json
: JSON array of "node" object (name, prefixes, suffixes)graph.json
: JSON object of company names to an array of following company namesunits.json
: JSON array of "unit" objects (id, chainPrefix)chains/[UNIT-ID].json
: JSON object of results from work unitbest.json
: Processed result of best chains
node names/crunchbase.js
: Scrapes names from crunchbase into names.jsonnode words/dict.js
: Loads words from /usr/share/dict/words into words.jsonnode nodes/words.js
: Creates nodes by finding prefix/suffixes that are in words.jsonnode nodes/hyphens.js
: Creates nodes by using a hyphenation enginenode graph/build.js
: Builds nodes into a graphnode units/chunk.js
: Builds a list of work units from graphnode chains/cache.js
: Processes work units using a relatively simple result caching optimizationnode best.js
: Combine results to find the best chain