-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
320 lines (286 loc) · 14.3 KB
/
index.html
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css"
integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS"
crossorigin="anonymous">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300' rel='stylesheet' type='text/css'>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/papaparse.min.js"></script>
<script src="https://code.responsivevoice.org/responsivevoice.js?key=4dmf3fbx"></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>SMARTool</title>
</head>
<body>
<div id="app" v-cloak>
<div class="container">
<div class="row top-buffer">
<div class="col-md-12">
SMARTool for {{ user_language }}-speaking learners of {{ target_language }}
</div>
</div>
<div class="row top-buffer">
<div class="col-md-2">
<img src="img/language_SMARTool_logo.png" alt="language SMARTool" height="35px">
</div>
<div class="col-md-10">
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link show active" data-toggle="tab" href="#by_topic">Search by topic</a>
</li>
<li class="nav-item">
<a class="nav-link show" data-toggle="tab" href="#by_analysis">Search by analysis</a>
</li>
<li class="nav-item">
<a class="nav-link show" data-toggle="tab" href="#by_word">Search by dictionary</a>
</li>
<li class="nav-item">
<a class="nav-link show" data-toggle="modal" href="#abbreviations_modal">List of abbreviations</a>
</li>
<li class="nav-item">
<a class="nav-link show" data-toggle="modal" href="#about_modal">About</a>
</li>
</ul>
</div>
</div>
<div class="row top-buffer">
<div class="col-md-2">
<label>{{ level_selection }}</label>
<select v-model="level" class="form-control">
<option v-for="level in levels">
{{ level }}
</option>
</select>
</div>
<div class="col-md-10">
<div id="tab_content" class="tab-content">
<div class="tab-pane fade active show" id="by_topic">
<label>Topic</label>
<select v-model="topic" class="form-control" v-on:change="select_mode('by_topic')">
<option v-for="topic in topics" :value="topic">
{{ topic }} ({{ translate_topic(topic) }})
</option>
</select>
</div>
<div class="tab-pane fade" id="by_analysis">
<label>Analysis</label>
<select v-model="analysis" class="form-control" v-on:change="select_mode('by_analysis')">
<option v-for="analysis in analyses">
{{ analysis }}
</option>
</select>
</div>
<div class="tab-pane fade" id="by_word">
<label>Word</label>
<select v-model="word" class="form-control" v-on:change="select_mode('by_word')">
<option v-for="word in words_by_level" :value="word">
{{ word }} ({{ translate_word(word) }})
</option>
</select>
</div>
</div>
</div>
</div>
<div v-if="mode == 'by_topic'">
<div class="row top-buffer">
<div class="col-md-12">
<span v-if="num_words > 1">
<span class="fa fa-arrow-circle-left fa-2x" style="color: #04962b;" v-on:click="previous_word"></span>
<span class="fa fa-arrow-circle-right fa-2x" style="color: #04962b;" v-on:click="next_word"></span>
</span>
<h1 style="display: inline-block;">{{ words_by_level_topic[counter] }}</h1>
</div>
</div>
</div>
<div class="row top-buffer">
<div class="col-md-12">
<input type="checkbox"
id="translation"
v-model="show_translation">
<label for="translation">Show translation</label>
<input type="radio" id="male" value="Male" v-model="voice">
<label for="male">male voice</label>
<input type="radio" id="female" value="Female" v-model="voice">
<label for="female">female voice</label>
</div>
</div>
<div v-for="sentence in sentences">
<div class="row top-buffer">
<div class="col-md-12">
<div v-html="sentence_with_emphasis(sentence[0], sentence[2])"
style="display: inline"> </div>
({{ sentence[3] }} <span class="fa fa-question-circle"
data-toggle="tooltip"
v-bind:title="analysis_spellout(sentence[3])"></span>)
<span class="fa fa-volume-up fa-2x" style="color: #04962b;" v-on:click="play_voice(sentence[0])"></span>
<div v-if="show_translation">
<i>{{ sentence[1] }}</i>
</div>
<div v-else>
</div>
</div>
</div>
</div>
<div class="row top-buffer bottom-buffer">
<div class="col-md-12">
<a href="https://diku.no">
<img title="Direktoratet for internasjonalisering og kvalitetsutvikling i høgare utdanning"
alt="Diku logo"
src="img/diku.jpg"
height="30px" />
</a>
<span style="display:inline-block; width: 25px;"></span>
<a href="https://uit.no">
<img title="UiT The Arctic University of Norway"
alt="UiT logo"
src="img/uit.png"
height="80px" />
</a>
<a href="https://www.hse.ru/en/">
<img title="Higher School of Economics"
alt="HSE logo"
src="img/hse.jpg"
height="90px" />
</a>
<a href="https://responsivevoice.org">
<img title="ResponsiveVoice Text To Speech"
alt="ResponsiveVoice Text To Speech"
src="https://responsivevoice.org/wp-content/uploads/2014/08/120x31.png" />
</a>
</div>
</div>
<!-- list of abbreviations -->
<div class="modal fade" id="abbreviations_modal" tabindex="-1" role="dialog" aria-labelledby="abbreviations_modal_label" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="abbreviations_modal_label">List of abbreviations</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<table>
<tr v-for="(spellout, abbreviation) in map_abbreviation_to_spellout">
<td>{{ abbreviation }}</td>
<td>{{ spellout }}</td>
</tr>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- about -->
<div class="modal fade" id="about_modal" tabindex="-1" role="dialog" aria-labelledby="about_modal_label" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="about_modal_label">SMARTool: The Strategic Mastery of Russian Tool</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>
The SMARTool is a free web resource for L2 learners of Russian that implements
findings of a learning simulation experiment and corpus research to optimize
the acquisition of Russian vocabulary and morphology. Corpus data
<a href="https://doi.org/10.1515/cllt-2018-0031" target="_blank">(Janda & Tyers 2018)</a>
reveals that for any given Russian lexeme, only a few (usually 1-3)
wordforms account for nearly all attestations, while remaining wordforms are
rare or unattested. Our computational learning experiment shows that learning
of Russian inflection is best when training is restricted to high frequency
wordforms. The SMARTool builds on these findings for a basic vocabulary of 3000
nouns, adjectives, and verbs culled from major textbooks and other sources to
represent levels A1, A2, B1, and B2 (CEFR scale). We have identified both a)
the three most frequent wordforms for each lexeme (reducing the target number
of wordforms to learn from 150,000 to 9,000) and b) the most typical
grammatical constructions and collocations that motivate each wordform. We have
also created c) corpus-based example sentences instantiating typical use.
</p>
<p>
Audio for all sentences (in both female and male voices) and English
translations are available at the click of a button. The SMARTool has filters
that facilitate searching by: a) CEFR Level, b) Topic (such as время/time,
еда/food, здоровье/health etc.), c) Analysis (such as Ins.Sing, facilitating
grammatical exercises), and d) Dictionary form.
</p>
<p>
Janda, Laura A. & Francis M. Tyers. 2018. Less is More: Why All Paradigms are
Defective, and Why that is a Good Thing. Corpus Linguistics and Linguistic
Theory 14(2), 33pp.
<a href="https://doi.org/10.1515/cllt-2018-0031" target="_blank">doi.org/10.1515/cllt-2018-0031</a>.
</p>
<p>
Source code:
<a href="https://github.com/smartool/smartool-rus-eng" target="_blank">https://github.com/smartool/smartool-rus-eng</a>.
</p>
<h4>
Team behind this project
</h4>
<ul>
<li>Radovan Bast (UiT The Arctic University of Norway): Design and Programming</li>
<li>Laura A. Janda (UiT The Arctic University of Norway):
Background research, Concept, Design, Vocabulary selection, Editing of content</li>
<li>Tore Nesset (UiT The Arctic University of Norway): Concept, Design, Vocabulary selection</li>
<li>Svetlana Sokolova (UiT The Arctic University of Norway): Concept, Design, Vocabulary selection</li>
<li>James McDonald (UiT The Arctic University of Norway): Editing of content</li>
<li>Mikhail Kopotev (University of Helsinki): Design, Vocabulary selection</li>
<li>Francis M. Tyers (Indiana University): Background research, Concept, Design, Vocabulary selection</li>
<li>Ekaterina Rakhilina (Higher School of Economics in Moscow): Concept</li>
<li>Olga Lyashevskaya (Higher School of Economics in Moscow): Concept, Design, Vocabulary selection</li>
<li>Valentina Zhukova (Higher School of Economics in Moscow): Content</li>
<li>Evgeniia Sudarikova (Higher School of Economics in Moscow): Content</li>
<li>Elizaveta Kibisova (Higher School of Economics in Moscow): Content</li>
</ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js"
integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js"
integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k"
crossorigin="anonymous"></script>
<script src="js/smartool.js"></script>
<script>
load_data({
target_language: 'Russian',
user_language: 'English',
level_selection: 'Level',
data_url_prefix: 'https://raw.githubusercontent.com/smartool/data-rus-eng/main/',
data_files: [
'SMARTool_data_A1.csv',
'SMARTool_data_A2.csv',
'SMARTool_data_B1.csv',
'SMARTool_data_B2.csv'
],
abbreviations_file: 'SMARTool_data_Abbreviations.csv',
data_topics_file: 'SMARTool_data_Topics.csv'
});
</script>
</body>
</html>