This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
pulitzercode.coffee
111 lines (109 loc) · 3.26 KB
/
pulitzercode.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Description:
# Returns a random word from Joseph Pulitzer's book of coded names and terms.
#
# Intended to help news organizations name projects in the neutral manner
# employed by Scotland Yard and other UK law enforcement. Source:
# http://news.bbc.co.uk/2/hi/uk_news/magazine/7288489.stm
#
# According to W.A. Swanberg's biography, "Pulitzer," the Pulitzer code book
# ran 250 pages long and contained at least 20,000 coded names and terms.
#
# Here are a selection included in Swanberg's book. If anyone knows where I
# can find a copy of the complete book, please contact me at ben.welsh@gmail.com.
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot code name
#
# Author:
# @palewire, drawn from W.A. Swanberg's book "Pulitzer"
code_words = [
# NAMES
'andes' # Joseph Pulitzer
'cybira' # Ralph Pulitzer
'vandalia' # Joseph Pulitzer Jr.
'anfracto' # John Norris
'cantabo' # William H. Merrill
'coin' # Dumon Clarke
'dart' # Ernest Chamberlin
'destiny' # Mrs. Ralph Pulitzer
'gadroon' # J. Pierport Morgan
'gaiter' # James Gordon Bennett
'gamma' # Horatio W. Seymour
'gammon' # Boss Charles F. Murphy
'george' # Bradford Merrill
'glutinous' # Theodore Roosevelt
'gorgon' # Boss Richard Croker
'gosling' # Democratic party
'gramercy' # Admiral George Dewey
'grammarite' # Frank I. Cobb
'grandee' # Solomon S. Carvalho
'grasp' # Foster Coates
'graving' # Grover Cleveland
'gregory' # Judge Alton B. Parker
'grenade' # John H. Tennant
'greyhound' # Tammany Hall
'grinding' # Nelson Hersh
'guess' # John A. Dillon
'guidance' # George Cary Eggleston
'guideless' # Morrill Goddard
'guilder' # William Jennings Bryan
'guinea' # William McKinley
'gulch' # Don C. Seitz
'gumbo' # Pomeroy Burton
'gumboil' # David Graham Phillips
'gush' # William Randolph Hearst
'gyrate' # Caleb Van Hamm
'horace' # Arthur Brisbane
'lasso' # Alfred Butes
'los' # Solomon S. Carvalho
'macaroon' # William B. Hornblower
'macerate' # Whitelaw Reid
'malaria' # Republican party
'mediocrity' # Levi P. Morton
'melon' # Woodrow Wilson
'mohican' # Charles M. Lincoln
'pinch' # Charles S. Chapin
'promulgate' # James M. Tuohy
'rake' # Charles Evan Hughes
'rotund' # William Howard Taft
'sawpit' # George B. M. Harvey
'solid' # J. Angus Shaw
'valuation' # William VanBenthuysen
'volema' # Florence D. White
# BUSINESS TERMS
'senior' # The Morning World
'junior' # The Evening World
'seniority' # The Sunday World
'genuine' # All three Worlds
'grasping' # St. Louis Post-Dispatch
'curate' # Circulation
'geography' # The New York Times
'geologist' # The New York Herald
'geranium' # The New York Journal
'gesture' # The New York Tribune
'gloat' # Cash
'grandam' # City editor
'gruesome' # Managing editor
'napier' # Deficit
'napoleon' # Expenses
'nelson' # Net earnings
'nero' # Gross earnings
'potash' # Advertising
'pigeon' # Loss
'piggery' # Gain
'rat' # Combination of six advertisers
# CURRENT STATE OF JOSEPH PULITZER'S HEARING
'sociable' # Good right ear
'socratic' # Good left ear
'sodium' # Bad right ear
'sojourn' # Bad left ear
]
module.exports = (robot) ->
robot.respond /(it needs a )?code( name)?/i, (msg) ->
msg.send msg.random code_words