2 // From: http://snowballstem.org/algorithms/armenian/stemmer.html
3 // Author: Astghik Mkrtchyan
4 // Licence: 3-clause BSD, as per http://snowballstem.org/license.html
8 stringdef a hex '561' // 531
9 stringdef b hex '562' // 532
10 stringdef g hex '563' // 533
11 stringdef d hex '564' // 534
12 stringdef ye hex '565' // 535
13 stringdef z hex '566' // 536
14 stringdef e hex '567' // 537
15 stringdef y hex '568' // 538
16 stringdef dt hex '569' // 539
17 stringdef zh hex '56A' // 53A
18 stringdef i hex '56B' // 53B
19 stringdef l hex '56C' // 53C
20 stringdef kh hex '56D' // 53D
21 stringdef ts hex '56E' // 53E
22 stringdef k hex '56F' // 53F
23 stringdef h hex '570' // 540
24 stringdef dz hex '571' // 541
25 stringdef gh hex '572' // 542
26 stringdef djch hex '573' // 543
27 stringdef m hex '574' // 544
28 stringdef j hex '575' // 545
29 stringdef n hex '576' // 546
30 stringdef sh hex '577' // 547
31 stringdef vo hex '578' // 548
32 stringdef ch hex '579' // 549
33 stringdef p hex '57A' // 54A
34 stringdef dj hex '57B' // 54B
35 stringdef r hex '57C' // 54C
36 stringdef s hex '57D' // 54D
37 stringdef v hex '57E' // 54E
38 stringdef t hex '57F' // 54F
39 stringdef r' hex '580' // 550
40 stringdef c hex '581' // 551
41 stringdef u hex '582' // 552 //vjun
42 stringdef bp hex '583' // 553
43 stringdef q hex '584' // 554
44 stringdef ev hex '587'
45 stringdef o hex '585' // 555
46 stringdef f hex '586' // 556
48 routines ( mark_regions R2
61 define v '{a}{e}{i}{o}{u}{ye}{vo}{y}'
63 define mark_regions as (
68 gopast v setmark pV gopast non-v
69 gopast v gopast non-v setmark p2
75 define R2 as $p2 <= cursor
140 '{v}{ye}{c}{i}{n}{q}'
145 '{a}{c}{r'}{i}{n}{q}'
209 '{vo}{u}{dt}{j}{vo}{u}{n}'
233 [substring] R2 among (
245 '{vo}{u}{dt}{j}{a}{n}{n}'
246 '{vo}{u}{dt}{j}{a}{n}{y}'
247 '{vo}{u}{dt}{j}{a}{n}{s}'
248 '{vo}{u}{dt}{j}{a}{n}{d}'
249 '{vo}{u}{dt}{j}{a}{n}'
258 '{n}{ye}{r'}{vo}{u}{m}'
300 backwards setlimit tomark pV for (