csdl 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/csdl/target_values.rb +61 -0
- data/lib/csdl/target_values/countries.rb +67 -0
- data/lib/csdl/target_values/languages.rb +135 -0
- data/lib/csdl/target_values/regions.rb +838 -0
- data/lib/csdl/target_values/topics.rb +244 -0
- data/lib/csdl/targets.rb +2 -396
- data/lib/csdl/version.rb +1 -1
- metadata +7 -2
@@ -0,0 +1,244 @@
|
|
1
|
+
module CSDL
|
2
|
+
module TargetValues
|
3
|
+
|
4
|
+
TOPIC_CATEGORIES = [
|
5
|
+
"Actor/Director",
|
6
|
+
"Aerospace/Defense",
|
7
|
+
"Airport",
|
8
|
+
"Album",
|
9
|
+
"Amateur Sports Team",
|
10
|
+
"Anatomical Structure",
|
11
|
+
"Animal Breed",
|
12
|
+
"Animal",
|
13
|
+
"App",
|
14
|
+
"Appliances",
|
15
|
+
"Art",
|
16
|
+
"Artist",
|
17
|
+
"Arts/Entertainment/Nightlife",
|
18
|
+
"Arts/Humanities",
|
19
|
+
"Athlete",
|
20
|
+
"Attractions/Things to Do",
|
21
|
+
"Author",
|
22
|
+
"Automobiles and Parts",
|
23
|
+
"Automotive",
|
24
|
+
"Baby Goods/Kids Goods",
|
25
|
+
"Bags/Luggage",
|
26
|
+
"Bank/Financial Institution",
|
27
|
+
"Bank/Financial Services",
|
28
|
+
"Bar",
|
29
|
+
"Biotechnology",
|
30
|
+
"Blogger",
|
31
|
+
"Board Game",
|
32
|
+
"Book Genre",
|
33
|
+
"Book Series",
|
34
|
+
"Book Store",
|
35
|
+
"Book",
|
36
|
+
"Building Materials",
|
37
|
+
"Business Person",
|
38
|
+
"Business Services",
|
39
|
+
"Business/Economy",
|
40
|
+
"Camera/Photo",
|
41
|
+
"Cars",
|
42
|
+
"Cause",
|
43
|
+
"Chef",
|
44
|
+
"Chemicals",
|
45
|
+
"Church/Religious Organization",
|
46
|
+
"City",
|
47
|
+
"Clothing",
|
48
|
+
"Club",
|
49
|
+
"Coach",
|
50
|
+
"Color",
|
51
|
+
"Comedian",
|
52
|
+
"Commercial Equipment",
|
53
|
+
"Community Organization",
|
54
|
+
"Community",
|
55
|
+
"Community/Government",
|
56
|
+
"Company",
|
57
|
+
"Competition",
|
58
|
+
"Computers",
|
59
|
+
"Computers/Internet",
|
60
|
+
"Computers/Technology",
|
61
|
+
"Concentration or Major",
|
62
|
+
"Concert Tour",
|
63
|
+
"Concert Venue",
|
64
|
+
"Consulting/Business Services",
|
65
|
+
"Country",
|
66
|
+
"Course",
|
67
|
+
"Cuisine",
|
68
|
+
"Dancer",
|
69
|
+
"Degree",
|
70
|
+
"DESIGNER",
|
71
|
+
"Disease",
|
72
|
+
"Doctor",
|
73
|
+
"Drink",
|
74
|
+
"Drugs",
|
75
|
+
"Editor",
|
76
|
+
"Education",
|
77
|
+
"Education/Work Status",
|
78
|
+
"Electronics",
|
79
|
+
"Elementary School",
|
80
|
+
"Energy/Utility",
|
81
|
+
"Engineering/Construction",
|
82
|
+
"Entertainer",
|
83
|
+
"Entertainment",
|
84
|
+
"Entrepreneur",
|
85
|
+
"Episode",
|
86
|
+
"Event Planning/Event Services",
|
87
|
+
"Event",
|
88
|
+
"Farming/Agriculture",
|
89
|
+
"Fictional Character",
|
90
|
+
"Field of Study",
|
91
|
+
"Food",
|
92
|
+
"Food/Beverages",
|
93
|
+
"Food/Grocery",
|
94
|
+
"Furniture",
|
95
|
+
"Games/Toys",
|
96
|
+
"Geography_General",
|
97
|
+
"Government Official",
|
98
|
+
"Government Organization",
|
99
|
+
"Government",
|
100
|
+
"Health/Beauty",
|
101
|
+
"Health/Medical/Pharmaceuticals",
|
102
|
+
"Health/Medical/Pharmacy",
|
103
|
+
"Health/Wellness",
|
104
|
+
"High School Status",
|
105
|
+
"Holiday",
|
106
|
+
"Home Decor",
|
107
|
+
"Home Improvement",
|
108
|
+
"Home/Garden",
|
109
|
+
"Hospital/Clinic",
|
110
|
+
"Hotel",
|
111
|
+
"Household Supplies",
|
112
|
+
"Industrials",
|
113
|
+
"Insurance Company",
|
114
|
+
"Interest",
|
115
|
+
"Internet/Software",
|
116
|
+
"Island",
|
117
|
+
"Jewelry/Watches",
|
118
|
+
"Journalist",
|
119
|
+
"Just For Fun",
|
120
|
+
"Kitchen/Cooking",
|
121
|
+
"Lake",
|
122
|
+
"Landmark",
|
123
|
+
"Language",
|
124
|
+
"Lawyer",
|
125
|
+
"Legal/Law",
|
126
|
+
"Library",
|
127
|
+
"Local Business",
|
128
|
+
"Local/Travel",
|
129
|
+
"Magazine",
|
130
|
+
"Media/News/Publishing",
|
131
|
+
"Medical Procedure",
|
132
|
+
"Middle School",
|
133
|
+
"Mining/Materials",
|
134
|
+
"Monarch",
|
135
|
+
"Mountain",
|
136
|
+
"Movie character",
|
137
|
+
"Movie Genre",
|
138
|
+
"Movie Theater",
|
139
|
+
"Movie",
|
140
|
+
"Museum/Art Gallery",
|
141
|
+
"Music Award",
|
142
|
+
"Music Chart",
|
143
|
+
"Music Video",
|
144
|
+
"Music",
|
145
|
+
"Musical Genre",
|
146
|
+
"Musical Instrument",
|
147
|
+
"Musician/Band",
|
148
|
+
"Neighborhood",
|
149
|
+
"News Personality",
|
150
|
+
"News/Media",
|
151
|
+
"Newspaper",
|
152
|
+
"Non-Governmental Organization (NGO)",
|
153
|
+
"Non-Profit Organization",
|
154
|
+
"Null",
|
155
|
+
"Office Supplies",
|
156
|
+
"One-Time TV Program",
|
157
|
+
"Organization",
|
158
|
+
"Other",
|
159
|
+
"Outdoor Gear/Sporting Goods",
|
160
|
+
"Patio/Garden",
|
161
|
+
"Performance Art",
|
162
|
+
"Personal Blog",
|
163
|
+
"Personal Website",
|
164
|
+
"Pet Services",
|
165
|
+
"Pet Supplies",
|
166
|
+
"Pet",
|
167
|
+
"Phone/Tablet",
|
168
|
+
"Photographer",
|
169
|
+
"Playlist",
|
170
|
+
"Podcast",
|
171
|
+
"Political Ideology",
|
172
|
+
"Political Organization",
|
173
|
+
"Political Party",
|
174
|
+
"Politician",
|
175
|
+
"Preschool",
|
176
|
+
"Producer",
|
177
|
+
"Product/Service",
|
178
|
+
"Profession",
|
179
|
+
"Professional Services",
|
180
|
+
"Professional Sports Team",
|
181
|
+
"Public Figure",
|
182
|
+
"Public Places",
|
183
|
+
"Publisher",
|
184
|
+
"Radio Station",
|
185
|
+
"Real Estate",
|
186
|
+
"Record Label",
|
187
|
+
"Recreation/Sports",
|
188
|
+
"Reference",
|
189
|
+
"Regional",
|
190
|
+
"Religion",
|
191
|
+
"Restaurant/Cafe",
|
192
|
+
"Retail and Consumer Merchandise",
|
193
|
+
"River",
|
194
|
+
"School Sports Team",
|
195
|
+
"School",
|
196
|
+
"Science",
|
197
|
+
"Shopping/Retail",
|
198
|
+
"Small Business",
|
199
|
+
"Society/Culture",
|
200
|
+
"Software",
|
201
|
+
"Song",
|
202
|
+
"Spas/Beauty/Personal Care",
|
203
|
+
"Sport",
|
204
|
+
"Sports Event",
|
205
|
+
"Sports League",
|
206
|
+
"Sports Venue",
|
207
|
+
"Sports/Recreation/Activities",
|
208
|
+
"State/Province/Region",
|
209
|
+
"Studio",
|
210
|
+
"Teacher",
|
211
|
+
"Teens/Kids",
|
212
|
+
"Telecommunication",
|
213
|
+
"Tools/Equipment",
|
214
|
+
"Topic",
|
215
|
+
"Tours/Sightseeing",
|
216
|
+
"Transit Stop",
|
217
|
+
"Transport/Freight",
|
218
|
+
"Transportation",
|
219
|
+
"Travel/Leisure",
|
220
|
+
"TV Channel",
|
221
|
+
"TV Genre",
|
222
|
+
"TV Network",
|
223
|
+
"TV Season",
|
224
|
+
"TV Show",
|
225
|
+
"TV",
|
226
|
+
"TV/Movie Award",
|
227
|
+
"University Status",
|
228
|
+
"University",
|
229
|
+
"Video Game",
|
230
|
+
"Vitamins/Supplements",
|
231
|
+
"Waterfall",
|
232
|
+
"Website",
|
233
|
+
"Wine/Spirits",
|
234
|
+
"Work Position",
|
235
|
+
"Work Project",
|
236
|
+
"Work Status",
|
237
|
+
"Writer",
|
238
|
+
"Year"
|
239
|
+
].freeze
|
240
|
+
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
244
|
+
|
data/lib/csdl/targets.rb
CHANGED
@@ -1,400 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
module TargetValues
|
4
|
-
|
5
|
-
AGES = %w( 18-24 25-34 35-44 45-54 55-64 65+ unknown ).freeze
|
6
|
-
|
7
|
-
AUTHOR_TYPES = %w( page user ).freeze
|
8
|
-
|
9
|
-
COUNTRY_CODES_BY_COUNTRY = {
|
10
|
-
"Austria" => "AT",
|
11
|
-
"Bahrain" => "BH",
|
12
|
-
"Belgium" => "BE",
|
13
|
-
"Bulgaria" => "BG",
|
14
|
-
"Croatia" => "HR",
|
15
|
-
"Cyprus" => "CY",
|
16
|
-
"Czech Republic" => "CZ",
|
17
|
-
"Denmark" => "DK",
|
18
|
-
"Egypt" => "EG",
|
19
|
-
"Estonia" => "EE",
|
20
|
-
"Finland" => "FI",
|
21
|
-
"France" => "FR",
|
22
|
-
"Germany" => "DE",
|
23
|
-
"Ghana" => "GH",
|
24
|
-
"Greece" => "GR",
|
25
|
-
"Hungary" => "HU",
|
26
|
-
"Iceland" => "IS",
|
27
|
-
"Iraq" => "IQ",
|
28
|
-
"Ireland" => "IE",
|
29
|
-
"Israel" => "IL",
|
30
|
-
"Italy" => "IT",
|
31
|
-
"Jordan" => "JO",
|
32
|
-
"Kenya" => "KE",
|
33
|
-
"Kuwait" => "KW",
|
34
|
-
"Latvia" => "LV",
|
35
|
-
"Lebanon" => "LB",
|
36
|
-
"Lithuania" => "LT",
|
37
|
-
"Luxembourg" => "LU",
|
38
|
-
"Macedonia, the former Yugoslav Republic of" => "MK",
|
39
|
-
"Malta" => "MT",
|
40
|
-
"Mauritius" => "MU",
|
41
|
-
"Morocco" => "MA",
|
42
|
-
"Netherlands" => "NL",
|
43
|
-
"Nigeria" => "NG",
|
44
|
-
"Norway" => "NO",
|
45
|
-
"Oman" => "OM",
|
46
|
-
"Palestinian territories" => "PS",
|
47
|
-
"Poland" => "PL",
|
48
|
-
"Portugal" => "PT",
|
49
|
-
"Qatar" => "QA",
|
50
|
-
"Romania" => "RO",
|
51
|
-
"Saudi Arabia" => "SA",
|
52
|
-
"Serbia" => "RS",
|
53
|
-
"Slovakia" => "SK",
|
54
|
-
"Slovenia" => "SI",
|
55
|
-
"South Africa" => "ZA",
|
56
|
-
"Spain" => "ES",
|
57
|
-
"Sweden" => "SE",
|
58
|
-
"Switzerland" => "CH",
|
59
|
-
"Tunisia" => "TN",
|
60
|
-
"Turkey" => "TR",
|
61
|
-
"Ukraine" => "UA",
|
62
|
-
"United Arab Emirates" => "AE",
|
63
|
-
"United Kingdom" => "GB",
|
64
|
-
"United States" => "US",
|
65
|
-
}.freeze
|
66
|
-
|
67
|
-
COUNTRIES = COUNTRY_CODES_BY_COUNTRY.keys.freeze
|
68
|
-
|
69
|
-
COUNTRY_CODES = COUNTRY_CODES_BY_COUNTRY.values.freeze
|
70
|
-
|
71
|
-
GENDERS = %w( female male unknown ).freeze
|
72
|
-
|
73
|
-
INTERACTION_TYPES = %w( comment like reshare story ).freeze
|
74
|
-
|
75
|
-
INTERFACES = %w( desktop mobile ).freeze
|
76
|
-
|
77
|
-
LANGUAGES_BY_LANGUAGE_CODE = {
|
78
|
-
"af" => "Afrikaans" , "ak" => "Akan" , "am" => "Amharic" , "ar" => "Arabic" ,
|
79
|
-
"as" => "Assamese" , "ay" => "Aymara" , "az" => "Azerbaijani" , "be" => "Belarusian" ,
|
80
|
-
"bg" => "Bulgarian" , "bn" => "Bengali" , "br" => "Breton" , "bs" => "Bosnian" ,
|
81
|
-
"ca" => "Catalan" , "cb" => "Sorani Kurdish" , "ck" => "Cherokee" , "co" => "Corsican" ,
|
82
|
-
"cs" => "Czech" , "cx" => "Cebuano" , "cy" => "Welsh" , "da" => "Danish" ,
|
83
|
-
"de" => "German" , "el" => "Greek" , "en" => "English" , "eo" => "Esperanto" ,
|
84
|
-
"es" => "Spanish" , "et" => "Estonian" , "eu" => "Basque" , "fa" => "Persian" ,
|
85
|
-
"ff" => "Fulah" , "fi" => "Finnish" , "fo" => "Faroese" , "fr" => "French" ,
|
86
|
-
"fy" => "Frisian" , "ga" => "Irish" , "gl" => "Galician" , "gn" => "Guarani" ,
|
87
|
-
"gu" => "Gujarati" , "gx" => "Classical Greek" , "ha" => "Hausa" , "he" => "Hebrew" ,
|
88
|
-
"hi" => "Hindi" , "hr" => "Croatian" , "hu" => "Hungarian" , "hy" => "Armenian" ,
|
89
|
-
"id" => "Indonesian" , "ig" => "Igbo" , "is" => "Icelandic" , "it" => "Italian" ,
|
90
|
-
"ja" => "Japanese" , "jv" => "Javanese" , "ka" => "Georgian" , "kk" => "Kazakh" ,
|
91
|
-
"km" => "Khmer" , "kn" => "Kannada" , "ko" => "Korean" , "ku" => "Kurdish (Kurmanji)" ,
|
92
|
-
"la" => "Latin" , "lg" => "Ganda" , "li" => "Limburgish" , "ln" => "Lingala" ,
|
93
|
-
"lo" => "Lao" , "lt" => "Lithuanian" , "lv" => "Latvian" , "mg" => "Malagasy" ,
|
94
|
-
"mk" => "Macedonian" , "ml" => "Malayalam" , "mn" => "Mongolian" , "mr" => "Marathi" ,
|
95
|
-
"ms" => "Malay" , "mt" => "Maltese" , "my" => "Burmese" , "nb" => "Norwegian (bokmal)" ,
|
96
|
-
"nd" => "Ndebele" , "ne" => "Nepali" , "nl" => "Dutch" , "nn" => "Norwegian (nynorsk)" ,
|
97
|
-
"ny" => "Chewa" , "or" => "Oriya" , "pa" => "Punjabi" , "pl" => "Polish" ,
|
98
|
-
"ps" => "Pashto" , "pt" => "Portuguese" , "qu" => "Quechua" , "rm" => "Romansh" ,
|
99
|
-
"ro" => "Romanian" , "ru" => "Russian" , "rw" => "Kinyarwanda" , "sa" => "Sanskrit" ,
|
100
|
-
"sc" => "Sardinian" , "se" => "Northern Sámi" , "si" => "Sinhala" , "sk" => "Slovak" ,
|
101
|
-
"sl" => "Slovenian" , "sn" => "Shona" , "so" => "Somali" , "sq" => "Albanian" ,
|
102
|
-
"sr" => "Serbian" , "sv" => "Swedish" , "sw" => "Swahili" , "sy" => "Syriac" ,
|
103
|
-
"sz" => "Silesian" , "ta" => "Tamil" , "te" => "Telugu" , "tg" => "Tajik" ,
|
104
|
-
"th" => "Thai" , "tk" => "Turkmen" , "tl" => "Filipino" , "tr" => "Turkish" ,
|
105
|
-
"tt" => "Tatar" , "tz" => "Tamazight" , "uk" => "Ukrainian" , "ur" => "Urdu" ,
|
106
|
-
"uz" => "Uzbek" , "vi" => "Vietnamese" , "wo" => "Wolof" , "xh" => "Xhosa" ,
|
107
|
-
"yi" => "Yiddish" , "yo" => "Yoruba" , "zh" => "Chinese" , "zu" => "Zulu" ,
|
108
|
-
"zz" => "Zazaki"
|
109
|
-
}.freeze
|
110
|
-
|
111
|
-
LANGUAGE_CODES = LANGUAGES_BY_LANGUAGE_CODE.keys.freeze
|
112
|
-
|
113
|
-
LANGUAGES = LANGUAGES_BY_LANGUAGE_CODE.values.freeze
|
114
|
-
|
115
|
-
MEDIA_TYPES = %w( link note photo post reshare video ).freeze
|
116
|
-
|
117
|
-
REGIONS_BY_COUNTRY = {
|
118
|
-
"Austria" => [
|
119
|
-
"Burgenland" , "Kärnten" , "Niederösterreich" , "Oberösterreich" , "Salzburg" ,
|
120
|
-
"Steiermark" , "Tirol" , "Vorarlberg" , "Wien"
|
121
|
-
].freeze,
|
122
|
-
|
123
|
-
"Bahrain" => [],
|
124
|
-
|
125
|
-
"Belgium" => [
|
126
|
-
"Région De Bruxelles-Capitale"
|
127
|
-
].freeze,
|
128
|
-
|
129
|
-
"Bulgaria" => [],
|
130
|
-
|
131
|
-
"Croatia" => [],
|
132
|
-
|
133
|
-
"Cyprus" => [],
|
134
|
-
|
135
|
-
"Czech Republic" => [],
|
136
|
-
|
137
|
-
"Denmark" => [
|
138
|
-
"Arhus", "Nordjylland"
|
139
|
-
].freeze,
|
140
|
-
|
141
|
-
"Egypt" => [],
|
142
|
-
|
143
|
-
"Estonia" => [],
|
144
|
-
|
145
|
-
"Finland" => [
|
146
|
-
"Åland", "Lapland"
|
147
|
-
].freeze,
|
148
|
-
|
149
|
-
"France" => [
|
150
|
-
"Alsace" , "Aquitaine" , "Auvergne" , "Basse-Normandie" ,
|
151
|
-
"Bourgogne" , "Bretagne" , "Centre" , "Champagne-Ardenne" ,
|
152
|
-
"Corse" , "Franche-Comté" , "Haute-Normandie" , "Île-de-France" ,
|
153
|
-
"Languedoc-Roussillon" , "Limousin" , "Lorraine" , "Midi-Pyrénées" ,
|
154
|
-
"Nord-Pas-de-Calais" , "Pays de la Loire" , "Picardie" , "Poitou-Charentes" ,
|
155
|
-
"Provence-Alpes-Côte d'Azur" , "Rhône-Alpes"
|
156
|
-
].freeze,
|
157
|
-
|
158
|
-
"Germany" => [
|
159
|
-
"Baden-Württemberg" , "Bayern" , "Berlin" , "Brandenburg" ,
|
160
|
-
"Bremen" , "Hamburg" , "Hessen" , "Mecklenburg-Vorpommern" ,
|
161
|
-
"Niedersachsen" , "Nordrhein-Westfalen" , "Rheinland-Pfalz" , "Saarland" ,
|
162
|
-
"Sachsen" , "Sachsen-Anhalt" , "Schleswig-Holstein" , "Thüringen"
|
163
|
-
].freeze,
|
164
|
-
|
165
|
-
"Ghana" => [],
|
166
|
-
|
167
|
-
"Greece" => [],
|
168
|
-
|
169
|
-
"Hungary" => [],
|
170
|
-
|
171
|
-
"Iceland" => [].freeze,
|
172
|
-
|
173
|
-
"Iraq" => [],
|
174
|
-
|
175
|
-
"Ireland" => [
|
176
|
-
"Carlow" , "Cavan" , "Clare" , "Cork" , "Donegal" ,
|
177
|
-
"Dublin" , "Galway" , "Kerry" , "Kildare" , "Kilkenny" ,
|
178
|
-
"Laois" , "Leitrim" , "Limerick" , "Longford" , "Louth" ,
|
179
|
-
"Mayo" , "Meath" , "Monaghan" , "Offaly" , "Roscommon" ,
|
180
|
-
"Sligo" , "Tipperary" , "Waterford" , "Westmeath" , "Wexford" ,
|
181
|
-
"Wicklow"
|
182
|
-
].freeze,
|
183
|
-
|
184
|
-
"Israel" => [],
|
185
|
-
|
186
|
-
"Italy" => [
|
187
|
-
"Abruzzo" , "Basilicata" , "Calabria" , "Campania" , "Emilia-Romagna" ,
|
188
|
-
"Friuli-Venezia Giulia" , "Lazio" , "Liguria" , "Lombardia" , "Marche" ,
|
189
|
-
"Molise" , "Piemonte" , "Puglia" , "Sardegna" , "Sicilia" ,
|
190
|
-
"Toscana" , "Trentino-Alto Adige" , "Umbria" , "Valle d'Aosta" , "Veneto"
|
191
|
-
].freeze,
|
192
|
-
|
193
|
-
"Jordan" => [],
|
194
|
-
|
195
|
-
"Kenya" => [],
|
1
|
+
require "csdl/target_values"
|
196
2
|
|
197
|
-
|
198
|
-
|
199
|
-
"Latvia" => [],
|
200
|
-
|
201
|
-
"Lebanon" => [],
|
202
|
-
|
203
|
-
"Lithuania" => [],
|
204
|
-
|
205
|
-
"Luxembourg" => [
|
206
|
-
"Diekirch", "Grevenmacher", "Luxembourg"
|
207
|
-
].freeze,
|
208
|
-
|
209
|
-
"Macedonia, the former Yugoslav Republic of" => [],
|
210
|
-
|
211
|
-
"Malta" => [],
|
212
|
-
|
213
|
-
"Mauritius" => [],
|
214
|
-
|
215
|
-
"Morocco" => [],
|
216
|
-
|
217
|
-
"Netherlands" => [
|
218
|
-
"Drenthe" , "Flevoland" , "Friesland" , "Gelderland" , "Groningen" ,
|
219
|
-
"Limburg" , "Noord-Brabant" , "Noord-Holland" , "Overijssel" , "Utrecht" ,
|
220
|
-
"Zeeland" , "Zuid-Holland"
|
221
|
-
].freeze,
|
222
|
-
|
223
|
-
"Nigeria" => [],
|
224
|
-
|
225
|
-
"Norway" => [
|
226
|
-
"Akershus" , "Aust-Agder" , "Buskerud" , "Finnmark" ,
|
227
|
-
"Hedmark" , "Hordaland" , "Møre og Romsdal" , "Nord-Trøndelag" ,
|
228
|
-
"Nordland" , "Oppland" , "Oslo" , "Østfold" ,
|
229
|
-
"Rogaland" , "Sogn og Fjordane" , "Sør-Trøndelag" , "Telemark" ,
|
230
|
-
"Troms" , "Vest-Agder" , "Vestfold"
|
231
|
-
].freeze,
|
232
|
-
|
233
|
-
"Oman" => [],
|
234
|
-
|
235
|
-
"Palestinian territories" => [],
|
236
|
-
|
237
|
-
"Poland" => [],
|
238
|
-
|
239
|
-
"Portugal" => [
|
240
|
-
"Aveiro" , "Azores" , "Beja" , "Braga" , "Braganca" ,
|
241
|
-
"Castelo Branco" , "Coimbra" , "Evora" , "Faro" , "Guarda" ,
|
242
|
-
"Leiria" , "Lisboa" , "Madeira" , "Portalegre" , "Porto" ,
|
243
|
-
"Santarem" , "Setubal" , "Viana do Castelo" , "Vila Real" , "Viseu"
|
244
|
-
].freeze,
|
245
|
-
|
246
|
-
"Qatar" => [],
|
247
|
-
|
248
|
-
"Romania" => [],
|
249
|
-
|
250
|
-
"Saudi Arabia" => [],
|
251
|
-
|
252
|
-
"Serbia" => [],
|
253
|
-
|
254
|
-
"Slovakia" => [],
|
255
|
-
|
256
|
-
"Slovenia" => [],
|
257
|
-
|
258
|
-
"South Africa" => [],
|
259
|
-
|
260
|
-
"Spain" => [
|
261
|
-
"Andalucía" , "Aragón" , "Asturias" , "Cantabria" ,
|
262
|
-
"Castilla y Leon" , "Castilla-La Mancha" , "Cataluña" , "Comunidad de Madrid" ,
|
263
|
-
"Comunidad Valenciana" , "Extremadura" , "Galicia" , "Islas Baleares" ,
|
264
|
-
"Islas Canarias" , "La Rioja" , "Murcia" , "Navarra"
|
265
|
-
].freeze,
|
266
|
-
|
267
|
-
"Sweden" => [
|
268
|
-
"Blekinge Län" , "Dalarnas Län" , "Gävleborgs Län" , "Gotlands Län" ,
|
269
|
-
"Hallands Län" , "Jämtlands Län" , "Jönköpings Län" , "Kalmar Län" ,
|
270
|
-
"Kronobergs Län" , "Norrbottens Län" , "Örebro Län" , "Östergötlands Län" ,
|
271
|
-
"Skåne Län" , "Södermanlands Län" , "Stockholms Län" , "Uppsala Län" ,
|
272
|
-
"Värmlands Län" , "Västerbottens Län" , "Västernorrlands Län" , "Västmanlands Län" ,
|
273
|
-
"Västra Götaland"
|
274
|
-
].freeze,
|
275
|
-
|
276
|
-
"Switzerland" => [
|
277
|
-
"Aargau" , "Basel-Landschaft" , "Basel-Stadt" , "Bern" ,
|
278
|
-
"Fribourg" , "Geneve" , "Glarus" , "Graubünden" ,
|
279
|
-
"Jura" , "Luzern" , "Neuchâtel" , "Schaffhausen" ,
|
280
|
-
"Schwyz" , "Solothurn" , "St. Gallen" , "Thurgau" ,
|
281
|
-
"Ticino" , "Valais" , "Vaud" , "Zug" ,
|
282
|
-
"Zürich"
|
283
|
-
].freeze,
|
284
|
-
|
285
|
-
"Tunisia" => [],
|
286
|
-
|
287
|
-
"Turkey" => [],
|
288
|
-
|
289
|
-
"Ukraine" => [],
|
290
|
-
|
291
|
-
"United Arab Emirates" => [],
|
292
|
-
|
293
|
-
"United Kingdom" => [
|
294
|
-
"England", "Scotland", "Wales", "Northern Ireland"
|
295
|
-
].freeze,
|
296
|
-
|
297
|
-
"United States" => [
|
298
|
-
"Alabama" , "Alaska" , "Arizona" , "Arkansas" , "California" ,
|
299
|
-
"Colorado" , "Connecticut" , "Delaware" , "Florida" , "Georgia" ,
|
300
|
-
"Hawaii" , "Idaho" , "Illinois" , "Indiana" , "Iowa" ,
|
301
|
-
"Kansas" , "Kentucky" , "Louisiana" , "Maine" , "Maryland" ,
|
302
|
-
"Massachusetts" , "Michigan" , "Minnesota" , "Mississippi" , "Missouri" ,
|
303
|
-
"Montana" , "Nebraska" , "Nevada" , "New Hampshire" , "New Jersey" ,
|
304
|
-
"New Mexico" , "New York" , "North Carolina" , "North Dakota" , "Ohio" ,
|
305
|
-
"Oklahoma" , "Oregon" , "Pennsylvania" , "Rhode Island" , "South Carolina" ,
|
306
|
-
"South Dakota" , "Tennessee" , "Texas" , "Utah" , "Vermont" ,
|
307
|
-
"Virginia" , "Washington" , "West Virginia" , "Wisconsin" , "Wyoming"
|
308
|
-
].freeze
|
309
|
-
}.freeze
|
310
|
-
|
311
|
-
REGIONS = REGIONS_BY_COUNTRY.values.flatten.freeze
|
312
|
-
|
313
|
-
SENTIMENT = %w( positive negative neutral ).freeze
|
314
|
-
|
315
|
-
TOPIC_CATEGORIES = [
|
316
|
-
"Actor/Director" , "Aerospace/Defense" , "Airport" ,
|
317
|
-
"Album" , "Amateur Sports Team" , "Anatomical Structure" ,
|
318
|
-
"Animal Breed" , "Animal" , "App" ,
|
319
|
-
"Appliances" , "Art" , "Artist" ,
|
320
|
-
"Arts/Entertainment/Nightlife" , "Arts/Humanities" , "Athlete" ,
|
321
|
-
"Attractions/Things to Do" , "Author" , "Automobiles and Parts" ,
|
322
|
-
"Automotive" , "Baby Goods/Kids Goods" , "Bags/Luggage" ,
|
323
|
-
"Bank/Financial Institution" , "Bank/Financial Services" , "Bar" ,
|
324
|
-
"Biotechnology" , "Blogger" , "Board Game" ,
|
325
|
-
"Book Genre" , "Book Series" , "Book Store" ,
|
326
|
-
"Book" , "Building Materials" , "Business Person" ,
|
327
|
-
"Business Services" , "Business/Economy" , "Camera/Photo" ,
|
328
|
-
"Cars" , "Cause" , "Chef" ,
|
329
|
-
"Chemicals" , "Church/Religious Organization" , "City" ,
|
330
|
-
"Clothing" , "Club" , "Coach" ,
|
331
|
-
"Color" , "Comedian" , "Commercial Equipment" ,
|
332
|
-
"Community Organization" , "Community" , "Community/Government" ,
|
333
|
-
"Company" , "Competition" , "Computers" ,
|
334
|
-
"Computers/Internet" , "Computers/Technology" , "Concentration or Major" ,
|
335
|
-
"Concert Tour" , "Concert Venue" , "Consulting/Business Services" ,
|
336
|
-
"Country" , "Course" , "Cuisine" ,
|
337
|
-
"Dancer" , "Degree" , "DESIGNER" ,
|
338
|
-
"Disease" , "Doctor" , "Drink" ,
|
339
|
-
"Drugs" , "Editor" , "Education" ,
|
340
|
-
"Education/Work Status" , "Electronics" , "Elementary School" ,
|
341
|
-
"Energy/Utility" , "Engineering/Construction" , "Entertainer" ,
|
342
|
-
"Entertainment" , "Entrepreneur" , "Episode" ,
|
343
|
-
"Event Planning/Event Services" , "Event" , "Farming/Agriculture" ,
|
344
|
-
"Fictional Character" , "Field of Study" , "Food" ,
|
345
|
-
"Food/Beverages" , "Food/Grocery" , "Furniture" ,
|
346
|
-
"Games/Toys" , "Geography_General" , "Government Official" ,
|
347
|
-
"Government Organization" , "Government" , "Health/Beauty" ,
|
348
|
-
"Health/Medical/Pharmaceuticals" , "Health/Medical/Pharmacy" , "Health/Wellness" ,
|
349
|
-
"High School Status" , "Holiday" , "Home Decor" ,
|
350
|
-
"Home Improvement" , "Home/Garden" , "Hospital/Clinic" ,
|
351
|
-
"Hotel" , "Household Supplies" , "Industrials" ,
|
352
|
-
"Insurance Company" , "Interest" , "Internet/Software" ,
|
353
|
-
"Island" , "Jewelry/Watches" , "Journalist" ,
|
354
|
-
"Just For Fun" , "Kitchen/Cooking" , "Lake" ,
|
355
|
-
"Landmark" , "Language" , "Lawyer" ,
|
356
|
-
"Legal/Law" , "Library" , "Local Business" ,
|
357
|
-
"Local/Travel" , "Magazine" , "Media/News/Publishing" ,
|
358
|
-
"Medical Procedure" , "Middle School" , "Mining/Materials" ,
|
359
|
-
"Monarch" , "Mountain" , "Movie character" ,
|
360
|
-
"Movie Genre" , "Movie Theater" , "Movie" ,
|
361
|
-
"Museum/Art Gallery" , "Music Award" , "Music Chart" ,
|
362
|
-
"Music Video" , "Music" , "Musical Genre" ,
|
363
|
-
"Musical Instrument" , "Musician/Band" , "Neighborhood" ,
|
364
|
-
"News Personality" , "News/Media" , "Newspaper" ,
|
365
|
-
"Non-Governmental Organization (NGO)" , "Non-Profit Organization" , "Null" ,
|
366
|
-
"Office Supplies" , "One-Time TV Program" , "Organization" ,
|
367
|
-
"Other" , "Outdoor Gear/Sporting Goods" , "Patio/Garden" ,
|
368
|
-
"Performance Art" , "Personal Blog" , "Personal Website" ,
|
369
|
-
"Pet Services" , "Pet Supplies" , "Pet" ,
|
370
|
-
"Phone/Tablet" , "Photographer" , "Playlist" ,
|
371
|
-
"Podcast" , "Political Ideology" , "Political Organization" ,
|
372
|
-
"Political Party" , "Politician" , "Preschool" ,
|
373
|
-
"Producer" , "Product/Service" , "Profession" ,
|
374
|
-
"Professional Services" , "Professional Sports Team" , "Public Figure" ,
|
375
|
-
"Public Places" , "Publisher" , "Radio Station" ,
|
376
|
-
"Real Estate" , "Record Label" , "Recreation/Sports" ,
|
377
|
-
"Reference" , "Regional" , "Religion" ,
|
378
|
-
"Restaurant/Cafe" , "Retail and Consumer Merchandise" , "River" ,
|
379
|
-
"School Sports Team" , "School" , "Science" ,
|
380
|
-
"Shopping/Retail" , "Small Business" , "Society/Culture" ,
|
381
|
-
"Software" , "Song" , "Spas/Beauty/Personal Care" ,
|
382
|
-
"Sport" , "Sports Event" , "Sports League" ,
|
383
|
-
"Sports Venue" , "Sports/Recreation/Activities" , "State/Province/Region" ,
|
384
|
-
"Studio" , "Teacher" , "Teens/Kids" ,
|
385
|
-
"Telecommunication" , "Tools/Equipment" , "Topic" ,
|
386
|
-
"Tours/Sightseeing" , "Transit Stop" , "Transport/Freight" ,
|
387
|
-
"Transportation" , "Travel/Leisure" , "TV Channel" ,
|
388
|
-
"TV Genre" , "TV Network" , "TV Season" ,
|
389
|
-
"TV Show" , "TV" , "TV/Movie Award" ,
|
390
|
-
"University Status" , "University" , "Video Game" ,
|
391
|
-
"Vitamins/Supplements" , "Waterfall" , "Website" ,
|
392
|
-
"Wine/Spirits" , "Work Position" , "Work Project" ,
|
393
|
-
"Work Status" , "Writer" , "Year"
|
394
|
-
].freeze
|
395
|
-
|
396
|
-
UNBOUNDED = ::Float::INFINITY
|
397
|
-
end
|
3
|
+
module CSDL
|
398
4
|
|
399
5
|
# A CSDL Target definition with indication as to where the target can be used.
|
400
6
|
#
|