petrovich 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +2 -0
- data/Rakefile +10 -2
- data/lib/petrovich/version.rb +1 -1
- data/rules/rules.yml +17 -11
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d05872a5f1ffb19b6523ee551eda6aa784fe325199ff08bdde3c60dd3b006d7f
|
4
|
+
data.tar.gz: 251b78b0effcc45376b1d24ad459d6cdaf418fc07b0f345542a6fae9c01af43d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd56286326239830552f08b851b13f044eeb796e8f264170b2849a23f2b21a5d69f33d833ff143a5a1690d6045c61bf36ddacbac8d18827b407eabf1399dac81
|
7
|
+
data.tar.gz: 59f40a13139ceccc69b83be2f745270bf6c36d02f0ffc76fdaa01e109e12941e32a5106f83ecd792d9a1e41c9ea8474b61bab12faf48e3f4279bd73b1b757692
|
data/README.md
CHANGED
@@ -136,6 +136,8 @@ petrovich -l Иванов -f Иван -m Иванович -c accusative -o
|
|
136
136
|
Эта библиотека не была бы столь замечательна без содействия Павла Скрылёва,
|
137
137
|
Никиты Помящего, Игоря Бочкарёва, и других хороших людей.
|
138
138
|
|
139
|
+
Отдельная благодарность [Андрею Бильжо](https://ru.wikipedia.org/wiki/%D0%91%D0%B8%D0%BB%D1%8C%D0%B6%D0%BE,_%D0%90%D0%BD%D0%B4%D1%80%D0%B5%D0%B9_%D0%93%D0%B5%D0%BE%D1%80%D0%B3%D0%B8%D0%B5%D0%B2%D0%B8%D1%87) за то, что разрешил нам использовать персонаж Петровича в нашем логотипе.
|
140
|
+
|
139
141
|
## Портирование
|
140
142
|
|
141
143
|
Существуют официальные порты Petrovich на другие языке и платформы. Их список
|
data/Rakefile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
#!/usr/bin/env rake
|
2
2
|
# encoding: utf-8
|
3
3
|
|
4
|
-
require
|
5
|
-
require
|
4
|
+
require 'bundler/gem_tasks'
|
5
|
+
require 'rake/testtask'
|
6
6
|
|
7
7
|
Rake::TestTask.new do |t|
|
8
8
|
t.test_files = FileList['test/**/*_test.rb']
|
@@ -15,6 +15,14 @@ task :petrovich do
|
|
15
15
|
require 'petrovich'
|
16
16
|
end
|
17
17
|
|
18
|
+
task :populate do
|
19
|
+
system 'git submodule update --init --recursive'
|
20
|
+
end
|
21
|
+
|
22
|
+
task :update do
|
23
|
+
system 'git submodule update --init --remote'
|
24
|
+
end
|
25
|
+
|
18
26
|
Rake::TestTask.new(:bench) do |test|
|
19
27
|
test.libs << 'test'
|
20
28
|
test.test_files = Dir['test/**/bench_*.rb']
|
data/lib/petrovich/version.rb
CHANGED
data/rules/rules.yml
CHANGED
@@ -53,6 +53,16 @@ lastname:
|
|
53
53
|
- gender: female
|
54
54
|
test: [ска, цка]
|
55
55
|
mods: [-ой, -ой, -ую, -ой, -ой]
|
56
|
+
|
57
|
+
# Осадчая, Горячая
|
58
|
+
- gender: female
|
59
|
+
test: [чая]
|
60
|
+
mods: [--ей, --ей, --ую, --ей, --ей]
|
61
|
+
|
62
|
+
# Горячий
|
63
|
+
- gender: male
|
64
|
+
test: [чий]
|
65
|
+
mods: [--его, --ему, --его, --им, --ем]
|
56
66
|
|
57
67
|
# Дубовицкая, Суперанская, Лесная, Барановская
|
58
68
|
- gender: female
|
@@ -242,6 +252,10 @@ firstname:
|
|
242
252
|
test: [яша]
|
243
253
|
mods: [-и, -е, -у, -ей, -е]
|
244
254
|
|
255
|
+
- gender: male
|
256
|
+
test: [илья]
|
257
|
+
mods: [-и, -е, -ю, -ёй, -е]
|
258
|
+
|
245
259
|
- gender: male
|
246
260
|
test: [шота]
|
247
261
|
mods: [., ., ., ., .]
|
@@ -290,11 +304,6 @@ firstname:
|
|
290
304
|
test: [а]
|
291
305
|
mods: [-ы, -е, -у, -ой, -е]
|
292
306
|
|
293
|
-
# Зульфия
|
294
|
-
- gender: female
|
295
|
-
test: [ия]
|
296
|
-
mods: [-и, -и, -ю, -ей, -и]
|
297
|
-
|
298
307
|
# Майка
|
299
308
|
- gender: female
|
300
309
|
test: [ка, га, ха]
|
@@ -310,16 +319,13 @@ firstname:
|
|
310
319
|
test: [а]
|
311
320
|
mods: [-ы, -е, -у, -ой, -е]
|
312
321
|
|
313
|
-
# Юлия
|
322
|
+
# Зульфия, Юлия
|
314
323
|
- gender: female
|
315
|
-
test: [я]
|
316
|
-
mods: [-и, -е, -ю, -ей, -е]
|
317
|
-
|
318
|
-
- gender: male
|
319
324
|
test: [ия]
|
320
325
|
mods: [-и, -и, -ю, -ей, -и]
|
321
326
|
|
322
|
-
|
327
|
+
# Зоя, Майя, Добрыня
|
328
|
+
- gender: androgynous
|
323
329
|
test: [я]
|
324
330
|
mods: [-и, -е, -ю, -ей, -е]
|
325
331
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: petrovich
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kozlov
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-03-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '0'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: minitest
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,7 +67,7 @@ files:
|
|
67
67
|
- lib/tasks/evaluate.rake
|
68
68
|
- rules/gender.yml
|
69
69
|
- rules/rules.yml
|
70
|
-
homepage:
|
70
|
+
homepage: https://petrovich.nlpub.ru/
|
71
71
|
licenses:
|
72
72
|
- MIT
|
73
73
|
metadata: {}
|
@@ -86,8 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
|
-
|
90
|
-
rubygems_version: 2.5.2
|
89
|
+
rubygems_version: 3.0.3
|
91
90
|
signing_key:
|
92
91
|
specification_version: 4
|
93
92
|
summary: Petrovich, an inflector for Russian anthroponyms.
|