Repository navigation
Expand file tree
/
Copy pathNOTICE
More file actions
79 lines (67 loc) · 4.38 KB
/
Copy pathNOTICE
File metadata and controls
79 lines (67 loc) · 4.38 KB
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
Shirabe Reader
Copyright (c) Shirabe
This extension bundles a Japanese deinflection rule set and ports its algorithm
from Yomitan, which are distributed under the GNU General Public License v3.
Because of this lineage, Shirabe Reader itself is licensed under GPL-3.0 (see
LICENSE). This applies to the browser extension only: it is the work that is
distributed. The Shirabe web application and API are separate works, are not
conveyed with this extension, and are not covered by the GPL.
-------------------------------------------------------------------------------
Yomitan
-------------------------------------------------------------------------------
The deinflection rule set vendored at src/common/resources/japanese-transforms.json
and the transformer in src/common/deinflect.ts are ported from Yomitan's Japanese
language transforms (ext/js/language/ja/japanese-transforms.js) and its
LanguageTransformer, by way of daidai's Ruby port.
The lookup pipeline in src/common/offline-dictionary.ts also follows Yomitan:
`collapseEmphatic` ports collapseEmphaticSequences and `katakanaToHiragana`
follows convertKatakanaToHiragana (ext/js/language/ja/japanese.js); the
part-of-speech gate on deinflected candidates (`posSatisfiesInflection`) and the
ranking tiebreakers in `contextualCompare`, prefer the most literal spelling,
then the shortest inflection chain, follow Translator's conditionsMatch check
and _sortTermDictionaryEntries (ext/js/language/translator.js).
Yomitan: https://github.com/yomidevs/yomitan
Licensed under the GNU General Public License v3.
-------------------------------------------------------------------------------
daidai
-------------------------------------------------------------------------------
The vendored rule set and the inflection labels in src/common/deinflect.ts are
taken from daidai, which is the same gem the Shirabe website uses to name
inflections, so a chain reads identically in the extension and on the page.
daidai: https://github.com/davafons/daidai
Licensed under the GNU General Public License v3.
-------------------------------------------------------------------------------
Dictionary data
-------------------------------------------------------------------------------
The offline dictionary pack is not part of this program: it is downloaded
separately and carries its own licenses (JMdict/JMnedict/KANJIDIC2 under
CC BY-SA 4.0 from the EDRDG, plus Shirabe's Spanish adaptations). See the pack's
manifest and https://shirabe.org/credits for full attribution: that page is
kept current as the data changes, which is why the extension links to it rather
than shipping a copy that drifts.
-------------------------------------------------------------------------------
Test fixture: dictionary pack slice
-------------------------------------------------------------------------------
test/fixtures/dictionary-pack/slice.ndjson.gz is an excerpt of Shirabe's
offline dictionary pack (content revision recorded in slice.json beside it),
kept so the test suite runs against real dictionary data. It is test data: the
built extension does not contain it, and the GPL does not cover it. It is
distributed under CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/).
Modifications: entries were selected to those the test corpora can look up, and
their fields were selected and compacted for offline lookup.
It contains material from:
JMdict and JMnedict, by the Electronic Dictionary Research and Development
Group (EDRDG), CC BY-SA 4.0, https://www.edrdg.org/edrdg/licence.html
Shirabe's Spanish JMdict adaptation (AI-assisted, human-reviewed glosses
aligned to JMdict senses), CC BY-SA 4.0, https://shirabe.org/credits
jiten.moe frequency lists, CC BY-SA 4.0, https://jiten.moe/other
UniDic pitch metadata, by the National Institute for Japanese Language and
Linguistics, used under its Modified BSD option,
https://clrd.ninjal.ac.jp/unidic/
-------------------------------------------------------------------------------
Third-party libraries
-------------------------------------------------------------------------------
@noble/hashes, MIT License, https://github.com/paulmillr/noble-hashes
kanji-processor, MIT License, https://www.npmjs.com/package/kanji-processor
Maps old/variant kanji to their modern standard form (萬 → 万); the same
table Yomitan uses for its "Convert kanji variants" text processor.