Skip to content

Commit 48b951d

Browse files
authored
Inflection-63 Integrate ko Wikidata into Unicode Inflection Inflection-62 Integrate ar Wikidata into Unicode Inflection Inflection-61 Integrate he Wikidata into Unicode Inflection Inflection-60 Integrate hi Wikidata into Unicode Inflection Inflection-58 Integrate nb Wikidata into Unicode Inflection Inflection-56 Integrate nl Wikidata into Unicode Inflection Inflection-55 Integrate tr Wikidata into Unicode Inflection Inflection-54 Integrate ru Wikidata into Unicode Inflection Inflection-53 Integrate it Wikidata into Unicode Inflection Inflection-52 Integrate pt Wikidata into Unicode Inflection Inflection-51 Integrate fr Wikidata into Unicode Inflection Inflection-50 Integrate de Wikidata into Unicode Inflection (#167)
Inflection-63 Integrate ko Wikidata into Unicode Inflection Inflection-62 Integrate ar Wikidata into Unicode Inflection Inflection-61 Integrate he Wikidata into Unicode Inflection Inflection-60 Integrate hi Wikidata into Unicode Inflection Inflection-58 Integrate nb Wikidata into Unicode Inflection Inflection-56 Integrate nl Wikidata into Unicode Inflection Inflection-55 Integrate tr Wikidata into Unicode Inflection Inflection-54 Integrate ru Wikidata into Unicode Inflection Inflection-53 Integrate it Wikidata into Unicode Inflection Inflection-52 Integrate pt Wikidata into Unicode Inflection Inflection-51 Integrate fr Wikidata into Unicode Inflection Inflection-50 Integrate de Wikidata into Unicode Inflection
1 parent ce25e0f commit 48b951d

File tree

176 files changed

+4022
-26047
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+4022
-26047
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
build/*
1+
.DS_Store
2+
.idea
23
.vscode/launch.json
34
.vscode/settings.json
5+
build
46
fst/__pycache__/*
5-
inflection/tools/dictionary-parser/bin/*

inflection/cmake/versions.mk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#
22
# Copyright 2021-2024 Apple Inc. All rights reserved.
33
#
4-
CATCH2_VERSION := 3.8.0
5-
CF_VERSION := 5.10.1
4+
CATCH2_VERSION := 3.9.0
65
ICU_VERSION_MINIMUM := 77.1
7-
MARISA_VERSION := 0.2.6
6+
MARISA_VERSION := 0.3.1

inflection/ext/lib/Marisa/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ else()
2727
set(ARTIFACT "v${MARISA_VERSION}.tar.gz")
2828
ExternalProject_Add(marisa-trie-download
2929
URL https://github.com/s-yata/marisa-trie/archive/refs/tags/v${MARISA_VERSION}.tar.gz
30-
# This patch is needed to address weak vtables, which is an issue when using full link time optimization.
31-
# The patch may need to be updated if another version is created or additional patches are needed.
32-
BUILD_COMMAND ${CMAKE_CURRENT_LIST_DIR}/patch.sh ${CMAKE_CURRENT_BINARY_DIR}/marisa-trie ${CMAKE_CURRENT_LIST_DIR}/Exception.patch
30+
BUILD_COMMAND ""
3331
CONFIGURE_COMMAND "" INSTALL_COMMAND "" LOG_DOWNLOAD ON EXCLUDE_FROM_ALL TRUE
3432
SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/marisa-trie
3533
)

inflection/ext/lib/Marisa/Exception.patch

Lines changed: 0 additions & 34 deletions
This file was deleted.

inflection/ext/lib/Marisa/patch.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,31 @@
1+
dictionary_ar.lst filter=lfs diff=lfs merge=lfs -text
12
dictionary_da.lst filter=lfs diff=lfs merge=lfs -text
3+
dictionary_de.lst filter=lfs diff=lfs merge=lfs -text
24
dictionary_en.lst filter=lfs diff=lfs merge=lfs -text
35
dictionary_es.lst filter=lfs diff=lfs merge=lfs -text
6+
dictionary_fr.lst filter=lfs diff=lfs merge=lfs -text
7+
dictionary_he.lst filter=lfs diff=lfs merge=lfs -text
8+
dictionary_hi.lst filter=lfs diff=lfs merge=lfs -text
9+
dictionary_it.lst filter=lfs diff=lfs merge=lfs -text
10+
dictionary_ko.lst filter=lfs diff=lfs merge=lfs -text
11+
dictionary_nb.lst filter=lfs diff=lfs merge=lfs -text
12+
dictionary_nl.lst filter=lfs diff=lfs merge=lfs -text
13+
dictionary_pt.lst filter=lfs diff=lfs merge=lfs -text
14+
dictionary_ru.lst filter=lfs diff=lfs merge=lfs -text
15+
dictionary_sv.lst filter=lfs diff=lfs merge=lfs -text
16+
dictionary_tr.lst filter=lfs diff=lfs merge=lfs -text
17+
inflectional_ar.xml filter=lfs diff=lfs merge=lfs -text
418
inflectional_da.xml filter=lfs diff=lfs merge=lfs -text
19+
inflectional_de.xml filter=lfs diff=lfs merge=lfs -text
520
inflectional_en.xml filter=lfs diff=lfs merge=lfs -text
621
inflectional_es.xml filter=lfs diff=lfs merge=lfs -text
22+
inflectional_fr.xml filter=lfs diff=lfs merge=lfs -text
23+
inflectional_he.xml filter=lfs diff=lfs merge=lfs -text
24+
inflectional_hi.xml filter=lfs diff=lfs merge=lfs -text
25+
inflectional_it.xml filter=lfs diff=lfs merge=lfs -text
26+
inflectional_nb.xml filter=lfs diff=lfs merge=lfs -text
27+
inflectional_nl.xml filter=lfs diff=lfs merge=lfs -text
28+
inflectional_pt.xml filter=lfs diff=lfs merge=lfs -text
29+
inflectional_ru.xml filter=lfs diff=lfs merge=lfs -text
730
inflectional_sv.xml filter=lfs diff=lfs merge=lfs -text
8-
dictionary_sv.lst filter=lfs diff=lfs merge=lfs -text
31+
inflectional_tr.xml filter=lfs diff=lfs merge=lfs -text
Lines changed: 3 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,3 @@
1-
أب: singular genitive nominative indefinite construct masculine imperative second adjective noun verb inflection=5a inflection=2a95 inflection=2e9a inflection=2131
2-
أخ: singular genitive nominative indefinite construct masculine imperative second interjection noun verb inflection=3ba inflection=713
3-
أختا: singular dual perfective accusative nominative indefinite construct feminine third past noun verb inflection=3a9 inflection=713
4-
أدخل: singular imperfective perfective masculine imperative first second third past present verb inflection=78f inflection=693
5-
أرسل: singular imperfective perfective masculine imperative first second third past present verb inflection=c34 inflection=829
6-
أزال: singular imperfective perfective masculine first third past present verb inflection=fad inflection=2368
7-
أسند: singular imperfective perfective masculine imperative first second third past present verb inflection=151d inflection=ad6
8-
أشار: singular perfective masculine third past verb inflection=15d4
9-
أضاف: singular perfective masculine third past verb inflection=1abc
10-
أعجب: singular imperfective perfective nominative indefinite construct masculine imperative first second third past present adjective verb inflection=1dd5 inflection=ef8 inflection=efe
11-
أكمل: singular imperfective perfective nominative indefinite construct masculine imperative first second third past present adjective verb inflection=62 inflection=29e4 inflection=13e6 inflection=148e
12-
أوقف: singular imperfective perfective masculine imperative first second third past present verb inflection=2ae6
13-
أي: particle
14-
اتصل: singular perfective masculine imperative second third past verb inflection=2b7e
15-
احمد: singular masculine imperative second verb inflection=4b3
16-
اختر: singular masculine imperative second verb inflection=2bc9 inflection=547
17-
استخدم: singular perfective masculine imperative second third past verb inflection=2c61
18-
اسحب: singular masculine imperative second verb inflection=a10
19-
اضغط: singular masculine imperative second verb inflection=d7e
20-
افتح: singular masculine imperative second verb inflection=114a
21-
اكتب: singular imperative second verb inflection=1406
22-
انتقل: singular perfective masculine imperative second third past verb inflection=2e2a
23-
انقر: singular masculine imperative second verb inflection=1bad
24-
باب: singular genitive nominative indefinite construct masculine noun inflection=2ecf
25-
بك: plural nominative construct masculine adjective inflection=2f09
26-
بيت: singular genitive nominative indefinite construct masculine noun inflection=3042
27-
تتذكر: singular imperfective masculine feminine second third present verb inflection=31a9
28-
تذكير: singular genitive nominative indefinite construct masculine infinitive noun verb inflection=34 inflection=743
29-
تذكيرا: singular dual accusative nominative indefinite construct masculine noun inflection=34
30-
تريد: singular imperfective masculine feminine second third present verb inflection=a6f
31-
تلك: singular feminine determiner particle inflection=73c
32-
تمرن: singular plural imperfective perfective nominative indefinite construct masculine feminine imperative second third past present infinitive noun verb inflection=4 inflection=3448 inflection=15d5 inflection=176c inflection=1e3a inflection=1f63 inflection=229c inflection=2393
33-
توقف: singular inanimate imperfective perfective nominative indefinite construct masculine feminine imperative second third past present infinitive noun verb inflection=7 inflection=2ae6 inflection=3513
34-
جميل: singular nominative indefinite construct masculine adjective noun inflection=306 inflection=310
35-
حزين: singular nominative indefinite construct masculine participle active adjective noun verb inflection=103 inflection=424 inflection=42a
36-
خائب: singular nominative indefinite construct masculine participle active adjective verb inflection=12 inflection=4fe
37-
خائف: singular nominative indefinite construct masculine participle active adjective verb inflection=3a inflection=24bc
38-
ذلك: singular masculine determiner particle inflection=73c
39-
رسالة: singular nominative indefinite construct masculine feminine infinitive noun verb inflection=81d inflection=829
40-
رفض: singular perfective nominative indefinite construct masculine third past infinitive noun verb inflection=86a inflection=871
41-
ستحتاج: singular imperfective second third future verb inflection=2ba6
42-
سعيد: singular nominative indefinite construct masculine participle active adjective verb inflection=a56 inflection=1efc
43-
شارك: singular perfective masculine imperative second third past verb inflection=b2d
44-
شجاع: singular nominative indefinite construct masculine participle active adjective verb inflection=b6e inflection=b74
45-
شربة: singular inanimate nominative indefinite construct feminine noun inflection=3d
46-
شغل: singular perfective nominative indefinite construct masculine third past infinitive noun verb inflection=bd8 inflection=bdf
47-
شغوف: singular nominative indefinite construct masculine infinitive participle active adjective verb inflection=b inflection=bde
48-
شغّل: singular perfective masculine imperative second third past verb inflection=2301
49-
طاولتين: dual accusative indefinite feminine noun inflection=2
50-
عالق: singular nominative indefinite construct masculine adjective noun inflection=b inflection=ead
51-
عدل: singular plural perfective nominative indefinite construct masculine third past infinitive adjective noun verb inflection=ea inflection=f09 inflection=2718
52-
غاضب: singular perfective nominative indefinite construct masculine imperative second third past participle active adjective noun verb inflection=1b inflection=1049 inflection=104f inflection=10a7
53-
غيور: singular nominative indefinite construct masculine adjective inflection=20e
54-
فاقد: singular nominative indefinite construct masculine participle active adjective verb inflection=113a inflection=11db
55-
فخور: singular nominative indefinite construct masculine adjective noun inflection=b inflection=1b
56-
قادر: singular perfective genitive nominative indefinite construct masculine imperative second third past adjective noun verb inflection=df inflection=1244 inflection=23e4
57-
قبل: singular plural inanimate perfective nominative indefinite construct masculine feminine third past conjunction noun adposition verb inflection=2b8 inflection=1290 inflection=1298 inflection=129e
58-
قلق: singular perfective nominative indefinite construct masculine third past infinitive participle active adjective noun verb inflection=61 inflection=135f inflection=1363
59-
كسب: singular perfective nominative indefinite construct masculine third past infinitive noun verb inflection=5 inflection=1451
60-
كيلومتر: singular genitive nominative indefinite construct masculine noun inflection=34
61-
متحمس: singular nominative indefinite construct masculine participle active passive adjective noun verb inflection=3a inflection=60 inflection=313e
62-
متضايق: singular nominative indefinite construct masculine participle active passive adjective verb inflection=b inflection=d55 inflection=27e9
63-
متفائل: singular nominative indefinite construct masculine participle active adjective noun verb inflection=b inflection=1b inflection=3340
64-
متفاجئ: singular nominative indefinite construct masculine participle active adjective verb inflection=1 inflection=2915
65-
متوتر: singular inanimate nominative indefinite construct masculine participle active passive adjective noun verb inflection=7 inflection=b inflection=34e5
66-
متوقف: singular nominative indefinite construct masculine participle active passive adjective verb inflection=1 inflection=3513
67-
محبط: singular nominative indefinite construct masculine participle active passive adjective verb inflection=1 inflection=350c
68-
محبطون: plural animate nominative indefinite masculine adjective inflection=1
69-
محرج: nominative construct participle active passive adjective verb inflection=358a inflection=16b0
70-
مذنب: singular nominative indefinite construct masculine participle active passive adjective noun verb inflection=12 inflection=83 inflection=9a1
71-
مرتاح: singular nominative indefinite construct masculine participle active passive adjective verb inflection=b3 inflection=2bdf
72-
مرح: singular perfective nominative indefinite construct masculine third past infinitive participle active adjective noun verb inflection=1742 inflection=1745 inflection=2691
73-
مرحبا: dual perfective nominative construct masculine imperative second third past adjective interjection verb inflection=174a inflection=174c
74-
مرفوضة: singular nominative indefinite construct feminine adjective noun inflection=1 inflection=2
75-
مرهق: nominative construct participle active passive adjective verb inflection=edb inflection=176f
76-
مستمتع: singular nominative indefinite construct masculine participle active passive adjective verb inflection=6 inflection=2cf9
77-
مسرور: singular nominative indefinite construct masculine participle passive adjective verb inflection=6 inflection=a36
78-
مشغول: singular nominative indefinite construct masculine participle passive adjective verb inflection=1 inflection=bdf
79-
مشمئز: singular nominative indefinite masculine adjective inflection=1801
80-
مصر: singular perfective genitive nominative indefinite construct masculine imperative second third past present passive adjective noun proper-noun verb inflection=11 inflection=1817 inflection=1819 inflection=2943
81-
مضاف: singular nominative indefinite construct masculine participle passive adjective verb inflection=12 inflection=1abc
82-
مطعم: singular genitive nominative indefinite construct masculine participle active passive adjective noun verb inflection=6 inflection=1c95 inflection=184d
83-
معطل: singular nominative indefinite construct masculine participle passive adjective noun verb inflection=b inflection=16 inflection=2582
84-
مغلق: singular inanimate nominative indefinite construct masculine participle active passive adjective noun verb inflection=6 inflection=22dc inflection=18b4
85-
مفتوح: singular nominative indefinite construct masculine participle passive adjective noun verb inflection=1 inflection=114a inflection=18c1
86-
مفتوحة: singular plural nominative indefinite construct masculine feminine adjective noun inflection=1 inflection=18c1
87-
مفعّل: singular nominative indefinite construct masculine participle active passive adjective verb inflection=1 inflection=11d8
88-
مقفل: singular nominative indefinite construct masculine participle active passive adjective noun verb inflection=1 inflection=57 inflection=28fd
89-
ممتن: singular nominative indefinite construct masculine participle active passive adjective noun verb inflection=6 inflection=1b inflection=2a19
90-
مندهش: singular nominative indefinite construct masculine participle active passive adjective verb inflection=12 inflection=2e5b
91-
منزعج: singular nominative indefinite construct masculine participle active passive adjective noun verb inflection=12 inflection=1b inflection=2e5d
92-
نافذة: singular nominative indefinite construct masculine feminine adjective noun inflection=1a73 inflection=1a75 inflection=1a78
93-
هاتف: singular perfective genitive nominative indefinite construct masculine imperative second third past participle active adjective noun verb inflection=6 inflection=1c18 inflection=1c23 inflection=1c4a
94-
هادئ: singular nominative indefinite construct masculine participle active adjective verb inflection=b inflection=1c58
95-
هذا: singular masculine determiner inflection=1c5c
96-
هذه: singular feminine determiner inflection=9e inflection=1c5c
97-
واثق: singular perfective nominative indefinite construct masculine imperative second third past participle active adjective noun verb inflection=12 inflection=109 inflection=1cdb inflection=1d15
98-
وحيد: singular nominative indefinite construct masculine participle active adjective verb inflection=1d2a inflection=1d34
99-
يائس: singular nominative indefinite construct masculine participle active adjective noun verb inflection=4e inflection=1dde inflection=1de0
100-
ياردتا: dual nominative construct masculine noun inflection=2a
101-
يرسل: singular imperfective masculine third present verb inflection=c34 inflection=829
102-
يعجب: singular imperfective masculine third present verb inflection=1dd5 inflection=ef8
103-
Apple: singular nominative indefinite feminine noun proper-noun inflection=23
104-
iPhone: singular nominative indefinite masculine noun proper-noun inflection=19
105-
==============================================
106-
Manually curated for tests to pass
107-
Copyright 2024-2024 Apple Inc. All rights reserved.
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:7d3ce5339d95517edbdc9c824f002e076351e6ced9bb67c7109ad3d486e3a77e
3+
size 893500
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:86217cc3a8cc3a9319523fbc8b47f75b64e36736b12db448ade7865f8d6c32f5
3-
size 37765911
2+
oid sha256:6226384ce104886c32e6a90432f8b41d96be0f9925eb10896095250d048b6c8b
3+
size 38557469

0 commit comments

Comments
 (0)