line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Wiktionary::Parser::Section::Translations::WordSense::Lexeme; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
sub new { |
4
|
442
|
|
|
442
|
0
|
551
|
my $class = shift; |
5
|
442
|
|
|
|
|
686
|
my %args = @_; |
6
|
442
|
|
|
|
|
1817
|
my $self = bless \%args, $class; |
7
|
442
|
|
|
|
|
1258
|
return $self; |
8
|
|
|
|
|
|
|
} |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub add_translations { |
12
|
412
|
|
|
412
|
0
|
639
|
my $self = shift; |
13
|
412
|
|
|
|
|
736
|
my @words = @_; |
14
|
412
|
|
|
|
|
440
|
push @{$self->{translations}}, @words; |
|
412
|
|
|
|
|
1577
|
|
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub add_qualifiers { |
18
|
13
|
|
|
13
|
0
|
27
|
my $self = shift; |
19
|
13
|
|
|
|
|
32
|
my @words = @_; |
20
|
13
|
|
|
|
|
21
|
push @{$self->{qualifiers}}, @words; |
|
13
|
|
|
|
|
63
|
|
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub set_gender { |
24
|
133
|
|
|
133
|
0
|
187
|
my $self = shift; |
25
|
133
|
|
|
|
|
193
|
my $gender = shift; |
26
|
133
|
|
|
|
|
394
|
$self->{gender} = $gender; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub set_number { |
30
|
2
|
|
|
2
|
0
|
5
|
my $self = shift; |
31
|
2
|
|
|
|
|
4
|
my $number = shift; |
32
|
2
|
|
|
|
|
7
|
$self->{number} = $number; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub set_transliteration { |
36
|
108
|
|
|
108
|
0
|
160
|
my $self = shift; |
37
|
108
|
|
|
|
|
152
|
my $transliteration = shift; |
38
|
108
|
|
|
|
|
348
|
$self->{transliteration} = $transliteration; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
sub set_alternate { |
42
|
15
|
|
|
15
|
0
|
18
|
my $self = shift; |
43
|
15
|
|
|
|
|
24
|
my $alternate = shift; |
44
|
15
|
|
|
|
|
40
|
$self->{alternate} = $alternate; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub set_language_code { |
48
|
327
|
|
|
327
|
0
|
427
|
my $self = shift; |
49
|
327
|
|
|
|
|
392
|
my $language_code = shift; |
50
|
327
|
|
|
|
|
2214
|
$self->{language_code} = $language_code; |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
sub set_language_name { |
53
|
310
|
|
|
310
|
0
|
426
|
my $self = shift; |
54
|
310
|
|
|
|
|
376
|
my $language_name = shift; |
55
|
310
|
|
|
|
|
1084
|
$self->{language_name} = $language_name; |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
sub get_translations { |
60
|
37
|
|
|
37
|
0
|
53
|
my $self = shift; |
61
|
37
|
100
|
|
|
|
37
|
return @{$self->{translations} || []}; |
|
37
|
|
|
|
|
375
|
|
62
|
|
|
|
|
|
|
} |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
sub get_language_code { |
65
|
37
|
|
|
37
|
0
|
53
|
my $self = shift; |
66
|
37
|
|
|
|
|
115
|
return $self->{language_code}; |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
sub get_language_name { |
70
|
432
|
|
|
432
|
0
|
477
|
my $self = shift; |
71
|
432
|
|
|
|
|
1205
|
return $self->{language_name}; |
72
|
|
|
|
|
|
|
} |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
sub get_gender { |
76
|
0
|
|
|
0
|
0
|
0
|
my $self = shift; |
77
|
0
|
|
|
|
|
0
|
return $self->{gender}; |
78
|
|
|
|
|
|
|
} |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
sub get_number { |
81
|
0
|
|
|
0
|
0
|
0
|
my $self = shift; |
82
|
0
|
|
|
|
|
0
|
return $self->{number}; |
83
|
|
|
|
|
|
|
} |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
sub get_transliteration { |
86
|
47
|
|
|
47
|
0
|
65
|
my $self = shift; |
87
|
47
|
|
|
|
|
257
|
return $self->{transliteration}; |
88
|
|
|
|
|
|
|
} |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
sub get_alternate { |
91
|
37
|
|
|
37
|
0
|
47
|
my $self = shift; |
92
|
37
|
|
|
|
|
187
|
return $self->{alternate}; |
93
|
|
|
|
|
|
|
} |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
sub get_qualifiers { |
96
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
97
|
0
|
|
|
|
|
|
return $self->{qualifiers}; |
98
|
|
|
|
|
|
|
} |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
1; |