hypher 0.1.7

hypher separates words into syllables.
Documentation
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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
// This file is generated by tests/generate.rs
// Do not edit by hand!

/// A language you can hyphenate in.
///
/// Lists for each language also the ISO 639-1 two
/// letter language code and the ISO 15924 four letter
/// script code.
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
#[non_exhaustive]
pub enum Lang {
    /// Hyphenation for _Afrikaans._ (Code: `af`, Script, `Latn`, Feature: `afrikaans`)
    #[cfg(feature = "afrikaans")]
    Afrikaans,
    /// Hyphenation for _Albanian._ (Code: `sq`, Script, `Latn`, Feature: `albanian`)
    #[cfg(feature = "albanian")]
    Albanian,
    /// Hyphenation for _Assamese._ (Code: `as`, Script, `Beng`, Feature: `assamese`)
    #[cfg(feature = "assamese")]
    Assamese,
    /// Hyphenation for _Belarusian._ (Code: `be`, Script, `Cyrl`, Feature: `belarusian`)
    #[cfg(feature = "belarusian")]
    Belarusian,
    /// Hyphenation for _Bengali._ (Code: `bn`, Script, `Beng`, Feature: `bengali`)
    #[cfg(feature = "bengali")]
    Bengali,
    /// Hyphenation for _Bulgarian._ (Code: `bg`, Script, `Cyrl`, Feature: `bulgarian`)
    #[cfg(feature = "bulgarian")]
    Bulgarian,
    /// Hyphenation for _Catalan._ (Code: `ca`, Script, `Latn`, Feature: `catalan`)
    #[cfg(feature = "catalan")]
    Catalan,
    /// Hyphenation for _Croatian._ (Code: `hr`, Script, `Latn`, Feature: `croatian`)
    #[cfg(feature = "croatian")]
    Croatian,
    /// Hyphenation for _Czech._ (Code: `cs`, Script, `Latn`, Feature: `czech`)
    #[cfg(feature = "czech")]
    Czech,
    /// Hyphenation for _Danish._ (Code: `da`, Script, `Latn`, Feature: `danish`)
    #[cfg(feature = "danish")]
    Danish,
    /// Hyphenation for _Dutch._ (Code: `nl`, Script, `Latn`, Feature: `dutch`)
    #[cfg(feature = "dutch")]
    Dutch,
    /// Hyphenation for _English._ (Code: `en`, Script, `Latn`, Feature: `english`)
    #[cfg(feature = "english")]
    English,
    /// Hyphenation for _Estonian._ (Code: `et`, Script, `Latn`, Feature: `estonian`)
    #[cfg(feature = "estonian")]
    Estonian,
    /// Hyphenation for _Finnish._ (Code: `fi`, Script, `Latn`, Feature: `finnish`)
    #[cfg(feature = "finnish")]
    Finnish,
    /// Hyphenation for _French._ (Code: `fr`, Script, `Latn`, Feature: `french`)
    #[cfg(feature = "french")]
    French,
    /// Hyphenation for _Galician._ (Code: `gl`, Script, `Latn`, Feature: `galician`)
    #[cfg(feature = "galician")]
    Galician,
    /// Hyphenation for _Georgian._ (Code: `ka`, Script, `Geor`, Feature: `georgian`)
    #[cfg(feature = "georgian")]
    Georgian,
    /// Hyphenation for _German._ (Code: `de`, Script, `Latn`, Feature: `german`)
    #[cfg(feature = "german")]
    German,
    /// Hyphenation for _Greek._ (Code: `el`, Script, `Grek`, Feature: `greek`)
    #[cfg(feature = "greek")]
    Greek,
    /// Hyphenation for _Gujarati._ (Code: `gu`, Script, `Gujr`, Feature: `gujarati`)
    #[cfg(feature = "gujarati")]
    Gujarati,
    /// Hyphenation for _Hindi._ (Code: `hi`, Script, `Deva`, Feature: `hindi`)
    #[cfg(feature = "hindi")]
    Hindi,
    /// Hyphenation for _Hungarian._ (Code: `hu`, Script, `Latn`, Feature: `hungarian`)
    #[cfg(feature = "hungarian")]
    Hungarian,
    /// Hyphenation for _Icelandic._ (Code: `is`, Script, `Latn`, Feature: `icelandic`)
    #[cfg(feature = "icelandic")]
    Icelandic,
    /// Hyphenation for _Italian._ (Code: `it`, Script, `Latn`, Feature: `italian`)
    #[cfg(feature = "italian")]
    Italian,
    /// Hyphenation for _Kannada._ (Code: `kn`, Script, `Knda`, Feature: `kannada`)
    #[cfg(feature = "kannada")]
    Kannada,
    /// Hyphenation for _Kurmanji._ (Code: `ku`, Script, `Latn`, Feature: `kurmanji`)
    #[cfg(feature = "kurmanji")]
    Kurmanji,
    /// Hyphenation for _Latin._ (Code: `la`, Script, `Latn`, Feature: `latin`)
    #[cfg(feature = "latin")]
    Latin,
    /// Hyphenation for _Lithuanian._ (Code: `lt`, Script, `Latn`, Feature: `lithuanian`)
    #[cfg(feature = "lithuanian")]
    Lithuanian,
    /// Hyphenation for _Malayalam._ (Code: `ml`, Script, `Mlym`, Feature: `malayalam`)
    #[cfg(feature = "malayalam")]
    Malayalam,
    /// Hyphenation for _Marathi._ (Code: `mr`, Script, `Deva`, Feature: `marathi`)
    #[cfg(feature = "marathi")]
    Marathi,
    /// Hyphenation for _Mongolian._ (Code: `mn`, Script, `Cyrl`, Feature: `mongolian`)
    #[cfg(feature = "mongolian")]
    Mongolian,
    /// Hyphenation for _Norwegian._ (Code: `no`, Alias: `nb`, Alias: `nn`, Script, `Latn`, Feature: `norwegian`)
    #[cfg(feature = "norwegian")]
    Norwegian,
    /// Hyphenation for _Oriya._ (Code: `or`, Script, `Orya`, Feature: `oriya`)
    #[cfg(feature = "oriya")]
    Oriya,
    /// Hyphenation for _Panjabi._ (Code: `pa`, Script, `Guru`, Feature: `panjabi`)
    #[cfg(feature = "panjabi")]
    Panjabi,
    /// Hyphenation for _Polish._ (Code: `pl`, Script, `Latn`, Feature: `polish`)
    #[cfg(feature = "polish")]
    Polish,
    /// Hyphenation for _Portuguese._ (Code: `pt`, Script, `Latn`, Feature: `portuguese`)
    #[cfg(feature = "portuguese")]
    Portuguese,
    /// Hyphenation for _Russian._ (Code: `ru`, Script, `Cyrl`, Feature: `russian`)
    #[cfg(feature = "russian")]
    Russian,
    /// Hyphenation for _Sanskrit._ (Code: `sa`, Script, `Deva`, Feature: `sanskrit`)
    #[cfg(feature = "sanskrit")]
    Sanskrit,
    /// Hyphenation for _Serbian._ (Code: `sr`, Script, `Cyrl`, Feature: `serbian`)
    #[cfg(feature = "serbian")]
    Serbian,
    /// Hyphenation for _Slovak._ (Code: `sk`, Script, `Latn`, Feature: `slovak`)
    #[cfg(feature = "slovak")]
    Slovak,
    /// Hyphenation for _Slovenian._ (Code: `sl`, Script, `Latn`, Feature: `slovenian`)
    #[cfg(feature = "slovenian")]
    Slovenian,
    /// Hyphenation for _Spanish._ (Code: `es`, Script, `Latn`, Feature: `spanish`)
    #[cfg(feature = "spanish")]
    Spanish,
    /// Hyphenation for _Swedish._ (Code: `sv`, Script, `Latn`, Feature: `swedish`)
    #[cfg(feature = "swedish")]
    Swedish,
    /// Hyphenation for _Tamil._ (Code: `ta`, Script, `Taml`, Feature: `tamil`)
    #[cfg(feature = "tamil")]
    Tamil,
    /// Hyphenation for _Telugu._ (Code: `te`, Script, `Telu`, Feature: `telugu`)
    #[cfg(feature = "telugu")]
    Telugu,
    /// Hyphenation for _Turkish._ (Code: `tr`, Script, `Latn`, Feature: `turkish`)
    #[cfg(feature = "turkish")]
    Turkish,
    /// Hyphenation for _Turkmen._ (Code: `tk`, Script, `Latn`, Feature: `turkmen`)
    #[cfg(feature = "turkmen")]
    Turkmen,
    /// Hyphenation for _Ukrainian._ (Code: `uk`, Script, `Cyrl`, Feature: `ukrainian`)
    #[cfg(feature = "ukrainian")]
    Ukrainian,
}

impl Lang {
    /// Select a language using its ISO 639-1 code.
    pub fn from_iso(code: [u8; 2]) -> Option<Self> {
        match &code {
            #[cfg(feature = "afrikaans")]
            b"af" => Some(Self::Afrikaans),
            #[cfg(feature = "albanian")]
            b"sq" => Some(Self::Albanian),
            #[cfg(feature = "assamese")]
            b"as" => Some(Self::Assamese),
            #[cfg(feature = "belarusian")]
            b"be" => Some(Self::Belarusian),
            #[cfg(feature = "bengali")]
            b"bn" => Some(Self::Bengali),
            #[cfg(feature = "bulgarian")]
            b"bg" => Some(Self::Bulgarian),
            #[cfg(feature = "catalan")]
            b"ca" => Some(Self::Catalan),
            #[cfg(feature = "croatian")]
            b"hr" => Some(Self::Croatian),
            #[cfg(feature = "czech")]
            b"cs" => Some(Self::Czech),
            #[cfg(feature = "danish")]
            b"da" => Some(Self::Danish),
            #[cfg(feature = "dutch")]
            b"nl" => Some(Self::Dutch),
            #[cfg(feature = "english")]
            b"en" => Some(Self::English),
            #[cfg(feature = "estonian")]
            b"et" => Some(Self::Estonian),
            #[cfg(feature = "finnish")]
            b"fi" => Some(Self::Finnish),
            #[cfg(feature = "french")]
            b"fr" => Some(Self::French),
            #[cfg(feature = "galician")]
            b"gl" => Some(Self::Galician),
            #[cfg(feature = "georgian")]
            b"ka" => Some(Self::Georgian),
            #[cfg(feature = "german")]
            b"de" => Some(Self::German),
            #[cfg(feature = "greek")]
            b"el" => Some(Self::Greek),
            #[cfg(feature = "gujarati")]
            b"gu" => Some(Self::Gujarati),
            #[cfg(feature = "hindi")]
            b"hi" => Some(Self::Hindi),
            #[cfg(feature = "hungarian")]
            b"hu" => Some(Self::Hungarian),
            #[cfg(feature = "icelandic")]
            b"is" => Some(Self::Icelandic),
            #[cfg(feature = "italian")]
            b"it" => Some(Self::Italian),
            #[cfg(feature = "kannada")]
            b"kn" => Some(Self::Kannada),
            #[cfg(feature = "kurmanji")]
            b"ku" => Some(Self::Kurmanji),
            #[cfg(feature = "latin")]
            b"la" => Some(Self::Latin),
            #[cfg(feature = "lithuanian")]
            b"lt" => Some(Self::Lithuanian),
            #[cfg(feature = "malayalam")]
            b"ml" => Some(Self::Malayalam),
            #[cfg(feature = "marathi")]
            b"mr" => Some(Self::Marathi),
            #[cfg(feature = "mongolian")]
            b"mn" => Some(Self::Mongolian),
            #[cfg(feature = "norwegian")]
            b"no" => Some(Self::Norwegian),
            #[cfg(feature = "norwegian")]
            b"nb" => Some(Self::Norwegian),
            #[cfg(feature = "norwegian")]
            b"nn" => Some(Self::Norwegian),
            #[cfg(feature = "oriya")]
            b"or" => Some(Self::Oriya),
            #[cfg(feature = "panjabi")]
            b"pa" => Some(Self::Panjabi),
            #[cfg(feature = "polish")]
            b"pl" => Some(Self::Polish),
            #[cfg(feature = "portuguese")]
            b"pt" => Some(Self::Portuguese),
            #[cfg(feature = "russian")]
            b"ru" => Some(Self::Russian),
            #[cfg(feature = "sanskrit")]
            b"sa" => Some(Self::Sanskrit),
            #[cfg(feature = "serbian")]
            b"sr" => Some(Self::Serbian),
            #[cfg(feature = "slovak")]
            b"sk" => Some(Self::Slovak),
            #[cfg(feature = "slovenian")]
            b"sl" => Some(Self::Slovenian),
            #[cfg(feature = "spanish")]
            b"es" => Some(Self::Spanish),
            #[cfg(feature = "swedish")]
            b"sv" => Some(Self::Swedish),
            #[cfg(feature = "tamil")]
            b"ta" => Some(Self::Tamil),
            #[cfg(feature = "telugu")]
            b"te" => Some(Self::Telugu),
            #[cfg(feature = "turkish")]
            b"tr" => Some(Self::Turkish),
            #[cfg(feature = "turkmen")]
            b"tk" => Some(Self::Turkmen),
            #[cfg(feature = "ukrainian")]
            b"uk" => Some(Self::Ukrainian),
            _ => None,
        }
    }

    /// The default number of chars to each side between
    /// which breaking is forbidden.
    ///
    /// This follows typographic conventions.
    pub fn bounds(self) -> (usize, usize) {
        match self {
            #[cfg(feature = "afrikaans")]
            Self::Afrikaans => (1, 2),
            #[cfg(feature = "albanian")]
            Self::Albanian => (2, 2),
            #[cfg(feature = "assamese")]
            Self::Assamese => (2, 2),
            #[cfg(feature = "belarusian")]
            Self::Belarusian => (2, 2),
            #[cfg(feature = "bengali")]
            Self::Bengali => (2, 2),
            #[cfg(feature = "bulgarian")]
            Self::Bulgarian => (2, 2),
            #[cfg(feature = "catalan")]
            Self::Catalan => (2, 2),
            #[cfg(feature = "croatian")]
            Self::Croatian => (2, 2),
            #[cfg(feature = "czech")]
            Self::Czech => (2, 2),
            #[cfg(feature = "danish")]
            Self::Danish => (2, 2),
            #[cfg(feature = "dutch")]
            Self::Dutch => (2, 2),
            #[cfg(feature = "english")]
            Self::English => (2, 3),
            #[cfg(feature = "estonian")]
            Self::Estonian => (2, 3),
            #[cfg(feature = "finnish")]
            Self::Finnish => (2, 2),
            #[cfg(feature = "french")]
            Self::French => (2, 2),
            #[cfg(feature = "galician")]
            Self::Galician => (2, 2),
            #[cfg(feature = "georgian")]
            Self::Georgian => (1, 2),
            #[cfg(feature = "german")]
            Self::German => (2, 2),
            #[cfg(feature = "greek")]
            Self::Greek => (1, 1),
            #[cfg(feature = "gujarati")]
            Self::Gujarati => (2, 2),
            #[cfg(feature = "hindi")]
            Self::Hindi => (2, 2),
            #[cfg(feature = "hungarian")]
            Self::Hungarian => (2, 2),
            #[cfg(feature = "icelandic")]
            Self::Icelandic => (2, 2),
            #[cfg(feature = "italian")]
            Self::Italian => (2, 2),
            #[cfg(feature = "kannada")]
            Self::Kannada => (2, 2),
            #[cfg(feature = "kurmanji")]
            Self::Kurmanji => (2, 2),
            #[cfg(feature = "latin")]
            Self::Latin => (2, 2),
            #[cfg(feature = "lithuanian")]
            Self::Lithuanian => (2, 2),
            #[cfg(feature = "malayalam")]
            Self::Malayalam => (2, 2),
            #[cfg(feature = "marathi")]
            Self::Marathi => (2, 2),
            #[cfg(feature = "mongolian")]
            Self::Mongolian => (2, 2),
            #[cfg(feature = "norwegian")]
            Self::Norwegian => (2, 2),
            #[cfg(feature = "oriya")]
            Self::Oriya => (2, 2),
            #[cfg(feature = "panjabi")]
            Self::Panjabi => (2, 2),
            #[cfg(feature = "polish")]
            Self::Polish => (2, 2),
            #[cfg(feature = "portuguese")]
            Self::Portuguese => (2, 3),
            #[cfg(feature = "russian")]
            Self::Russian => (2, 2),
            #[cfg(feature = "sanskrit")]
            Self::Sanskrit => (2, 2),
            #[cfg(feature = "serbian")]
            Self::Serbian => (2, 2),
            #[cfg(feature = "slovak")]
            Self::Slovak => (2, 3),
            #[cfg(feature = "slovenian")]
            Self::Slovenian => (2, 2),
            #[cfg(feature = "spanish")]
            Self::Spanish => (2, 2),
            #[cfg(feature = "swedish")]
            Self::Swedish => (2, 2),
            #[cfg(feature = "tamil")]
            Self::Tamil => (2, 2),
            #[cfg(feature = "telugu")]
            Self::Telugu => (2, 2),
            #[cfg(feature = "turkish")]
            Self::Turkish => (2, 2),
            #[cfg(feature = "turkmen")]
            Self::Turkmen => (2, 2),
            #[cfg(feature = "ukrainian")]
            Self::Ukrainian => (2, 2),
        }
    }

    /// The default character used to join syllables.
    ///
    /// Returns `Some('\u{ad}')` (SOFT HYPHEN) for most languages, but `None`
    /// for Indic scripts where visual hyphenation is not conventional.
    pub fn hyphenation_character(self) -> Option<char> {
        match self {
            #[cfg(feature = "assamese")]
            Self::Assamese => None,
            #[cfg(feature = "bengali")]
            Self::Bengali => None,
            #[cfg(feature = "gujarati")]
            Self::Gujarati => None,
            #[cfg(feature = "hindi")]
            Self::Hindi => None,
            #[cfg(feature = "kannada")]
            Self::Kannada => None,
            #[cfg(feature = "malayalam")]
            Self::Malayalam => None,
            #[cfg(feature = "marathi")]
            Self::Marathi => None,
            #[cfg(feature = "oriya")]
            Self::Oriya => None,
            #[cfg(feature = "panjabi")]
            Self::Panjabi => None,
            #[cfg(feature = "sanskrit")]
            Self::Sanskrit => None,
            #[cfg(feature = "tamil")]
            Self::Tamil => None,
            #[cfg(feature = "telugu")]
            Self::Telugu => None,
            _ => Some('\u{ad}'),
        }
    }

    fn root(self) -> State<'static> {
        match self {
            #[cfg(feature = "afrikaans")]
            Self::Afrikaans => State::root(include_bytes!("../tries/af.bin")),
            #[cfg(feature = "albanian")]
            Self::Albanian => State::root(include_bytes!("../tries/sq.bin")),
            #[cfg(feature = "assamese")]
            Self::Assamese => State::root(include_bytes!("../tries/as.bin")),
            #[cfg(feature = "belarusian")]
            Self::Belarusian => State::root(include_bytes!("../tries/be.bin")),
            #[cfg(feature = "bengali")]
            Self::Bengali => State::root(include_bytes!("../tries/bn.bin")),
            #[cfg(feature = "bulgarian")]
            Self::Bulgarian => State::root(include_bytes!("../tries/bg.bin")),
            #[cfg(feature = "catalan")]
            Self::Catalan => State::root(include_bytes!("../tries/ca.bin")),
            #[cfg(feature = "croatian")]
            Self::Croatian => State::root(include_bytes!("../tries/hr.bin")),
            #[cfg(feature = "czech")]
            Self::Czech => State::root(include_bytes!("../tries/cs.bin")),
            #[cfg(feature = "danish")]
            Self::Danish => State::root(include_bytes!("../tries/da.bin")),
            #[cfg(feature = "dutch")]
            Self::Dutch => State::root(include_bytes!("../tries/nl.bin")),
            #[cfg(feature = "english")]
            Self::English => State::root(include_bytes!("../tries/en.bin")),
            #[cfg(feature = "estonian")]
            Self::Estonian => State::root(include_bytes!("../tries/et.bin")),
            #[cfg(feature = "finnish")]
            Self::Finnish => State::root(include_bytes!("../tries/fi.bin")),
            #[cfg(feature = "french")]
            Self::French => State::root(include_bytes!("../tries/fr.bin")),
            #[cfg(feature = "galician")]
            Self::Galician => State::root(include_bytes!("../tries/gl.bin")),
            #[cfg(feature = "georgian")]
            Self::Georgian => State::root(include_bytes!("../tries/ka.bin")),
            #[cfg(feature = "german")]
            Self::German => State::root(include_bytes!("../tries/de.bin")),
            #[cfg(feature = "greek")]
            Self::Greek => State::root(include_bytes!("../tries/el.bin")),
            #[cfg(feature = "gujarati")]
            Self::Gujarati => State::root(include_bytes!("../tries/gu.bin")),
            #[cfg(feature = "hindi")]
            Self::Hindi => State::root(include_bytes!("../tries/hi.bin")),
            #[cfg(feature = "hungarian")]
            Self::Hungarian => State::root(include_bytes!("../tries/hu.bin")),
            #[cfg(feature = "icelandic")]
            Self::Icelandic => State::root(include_bytes!("../tries/is.bin")),
            #[cfg(feature = "italian")]
            Self::Italian => State::root(include_bytes!("../tries/it.bin")),
            #[cfg(feature = "kannada")]
            Self::Kannada => State::root(include_bytes!("../tries/kn.bin")),
            #[cfg(feature = "kurmanji")]
            Self::Kurmanji => State::root(include_bytes!("../tries/ku.bin")),
            #[cfg(feature = "latin")]
            Self::Latin => State::root(include_bytes!("../tries/la.bin")),
            #[cfg(feature = "lithuanian")]
            Self::Lithuanian => State::root(include_bytes!("../tries/lt.bin")),
            #[cfg(feature = "malayalam")]
            Self::Malayalam => State::root(include_bytes!("../tries/ml.bin")),
            #[cfg(feature = "marathi")]
            Self::Marathi => State::root(include_bytes!("../tries/mr.bin")),
            #[cfg(feature = "mongolian")]
            Self::Mongolian => State::root(include_bytes!("../tries/mn.bin")),
            #[cfg(feature = "norwegian")]
            Self::Norwegian => State::root(include_bytes!("../tries/no.bin")),
            #[cfg(feature = "oriya")]
            Self::Oriya => State::root(include_bytes!("../tries/or.bin")),
            #[cfg(feature = "panjabi")]
            Self::Panjabi => State::root(include_bytes!("../tries/pa.bin")),
            #[cfg(feature = "polish")]
            Self::Polish => State::root(include_bytes!("../tries/pl.bin")),
            #[cfg(feature = "portuguese")]
            Self::Portuguese => State::root(include_bytes!("../tries/pt.bin")),
            #[cfg(feature = "russian")]
            Self::Russian => State::root(include_bytes!("../tries/ru.bin")),
            #[cfg(feature = "sanskrit")]
            Self::Sanskrit => State::root(include_bytes!("../tries/sa.bin")),
            #[cfg(feature = "serbian")]
            Self::Serbian => State::root(include_bytes!("../tries/sr.bin")),
            #[cfg(feature = "slovak")]
            Self::Slovak => State::root(include_bytes!("../tries/sk.bin")),
            #[cfg(feature = "slovenian")]
            Self::Slovenian => State::root(include_bytes!("../tries/sl.bin")),
            #[cfg(feature = "spanish")]
            Self::Spanish => State::root(include_bytes!("../tries/es.bin")),
            #[cfg(feature = "swedish")]
            Self::Swedish => State::root(include_bytes!("../tries/sv.bin")),
            #[cfg(feature = "tamil")]
            Self::Tamil => State::root(include_bytes!("../tries/ta.bin")),
            #[cfg(feature = "telugu")]
            Self::Telugu => State::root(include_bytes!("../tries/te.bin")),
            #[cfg(feature = "turkish")]
            Self::Turkish => State::root(include_bytes!("../tries/tr.bin")),
            #[cfg(feature = "turkmen")]
            Self::Turkmen => State::root(include_bytes!("../tries/tk.bin")),
            #[cfg(feature = "ukrainian")]
            Self::Ukrainian => State::root(include_bytes!("../tries/uk.bin")),
        }
    }
}