-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
195 lines (186 loc) · 4.74 KB
/
config.js
File metadata and controls
195 lines (186 loc) · 4.74 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
/**
* Configuration for Wikipedia Birthplace Corrector
*
* This file contains all mappings for replacing Soviet-era designations
* with modern country names. Community contributions welcome!
*
* HOW TO ADD NEW MAPPINGS:
* 1. Add SSR variations to the COUNTRY_MAPPINGS array
* 2. Each entry needs: ssrNames (array of variations), modernName, wikiPath
* 3. The wikiPath is the Wikipedia article path (e.g., "/wiki/Estonia")
*/
window.BirthplaceCorrectorConfig = {
/**
* Country mappings: SSR names -> Modern country names
*
* Each entry contains:
* - ssrNames: Array of SSR name variations to match
* - modernName: The modern country name to display
* - wikiPath: Wikipedia article path for the country
*/
COUNTRY_MAPPINGS: [
// ============================================
// BALTIC STATES (1940-1941, 1944-1991)
// ============================================
{
ssrNames: [
'Estonian SSR',
'Estonian Soviet Socialist Republic'
],
modernName: 'Estonia',
wikiPath: '/wiki/Estonia'
},
{
ssrNames: [
'Latvian SSR',
'Latvian Soviet Socialist Republic'
],
modernName: 'Latvia',
wikiPath: '/wiki/Latvia'
},
{
ssrNames: [
'Lithuanian SSR',
'Lithuanian Soviet Socialist Republic'
],
modernName: 'Lithuania',
wikiPath: '/wiki/Lithuania'
},
// ============================================
// EASTERN EUROPEAN REPUBLICS
// ============================================
{
ssrNames: [
'Ukrainian SSR',
'Ukrainian Soviet Socialist Republic'
],
modernName: 'Ukraine',
wikiPath: '/wiki/Ukraine'
},
{
ssrNames: [
'Byelorussian SSR',
'Belarusian SSR',
'Belorussian SSR',
'Byelorussian Soviet Socialist Republic',
'Belarusian Soviet Socialist Republic',
'Belorussian Soviet Socialist Republic'
],
modernName: 'Belarus',
wikiPath: '/wiki/Belarus'
},
{
ssrNames: [
'Moldavian SSR',
'Moldovan SSR',
'Moldavian Soviet Socialist Republic',
'Moldovan Soviet Socialist Republic'
],
modernName: 'Moldova',
wikiPath: '/wiki/Moldova'
},
// ============================================
// CAUCASUS REGION
// ============================================
{
ssrNames: [
'Georgian SSR',
'Georgian Soviet Socialist Republic'
],
modernName: 'Georgia',
wikiPath: '/wiki/Georgia_(country)'
},
{
ssrNames: [
'Armenian SSR',
'Armenian Soviet Socialist Republic'
],
modernName: 'Armenia',
wikiPath: '/wiki/Armenia'
},
{
ssrNames: [
'Azerbaijan SSR',
'Azerbaijani SSR',
'Azerbaijan Soviet Socialist Republic',
'Azerbaijani Soviet Socialist Republic'
],
modernName: 'Azerbaijan',
wikiPath: '/wiki/Azerbaijan'
},
// ============================================
// CENTRAL ASIAN REPUBLICS
// ============================================
{
ssrNames: [
'Kazakh SSR',
'Kazakh Soviet Socialist Republic'
],
modernName: 'Kazakhstan',
wikiPath: '/wiki/Kazakhstan'
},
{
ssrNames: [
'Uzbek SSR',
'Uzbek Soviet Socialist Republic'
],
modernName: 'Uzbekistan',
wikiPath: '/wiki/Uzbekistan'
},
{
ssrNames: [
'Turkmen SSR',
'Turkmen Soviet Socialist Republic'
],
modernName: 'Turkmenistan',
wikiPath: '/wiki/Turkmenistan'
},
{
ssrNames: [
'Kirghiz SSR',
'Kyrgyz SSR',
'Kirghiz Soviet Socialist Republic',
'Kyrgyz Soviet Socialist Republic'
],
modernName: 'Kyrgyzstan',
wikiPath: '/wiki/Kyrgyzstan'
},
{
ssrNames: [
'Tajik SSR',
'Tajik Soviet Socialist Republic'
],
modernName: 'Tajikistan',
wikiPath: '/wiki/Tajikistan'
},
// ============================================
// RUSSIAN SFSR
// ============================================
{
ssrNames: [
'Russian SFSR',
'Russian Soviet Federative Socialist Republic',
'RSFSR'
],
modernName: 'Russia',
wikiPath: '/wiki/Russia'
}
],
/**
* Terms to remove entirely (Soviet Union references)
* These will be removed along with any preceding comma
*/
TERMS_TO_REMOVE: [
'Soviet Union',
'USSR',
'Union of Soviet Socialist Republics'
],
/**
* Wikipedia URLs that should cause the entire link to be removed
*/
URLS_TO_REMOVE: [
'/wiki/Soviet_Union',
'/wiki/USSR',
'/wiki/Union_of_Soviet_Socialist_Republics'
]
};