commit cc98df8c478596eb577946f8ce5a133263c4d8fe Author: Eiji Miyamoto Date: Wed Aug 9 10:05:58 2023 +0100 deleted unnecessary words and added new rules diff --git a/apertium-jpn.jpn.lexc b/apertium-jpn.jpn.lexc index 9813225..a90e2d2 100644 --- a/apertium-jpn.jpn.lexc +++ b/apertium-jpn.jpn.lexc @@ -63866,6 +63866,9 @@ VR:VR NounTag ; イノベーション:イノベーション NounTag ; モラトリアム:モラトリアム NounTag ; ノーマライゼーション:ノーマライゼーション NounTag ; +来日:来日 NounTag ; +都内:都内 NounTag ; +兆:兆 NounTag ; LEXICON ProperNouns 日本:日本 NPTop ; ! Japan @@ -305963,7 +305966,6 @@ LEXICON AdjRoot 丸う:丸う naAdjTag ; 丸き:丸き naAdjTag ; 丸かれ:丸かれ naAdjTag ; -円:円 naAdjTag ; 円い:円い naAdjTag ; 円かれ:円かれ naAdjTag ; 円かろう:円かろう naAdjTag ; @@ -403652,7 +403654,6 @@ LEXICON VerbRoot きこえちゃ:きこえちゃ UVerbInflCP ; きこえりゃ:きこえりゃ UVerbInflCP ; きこえよ:きこえよ UVerbInflCP ; -兆:兆 UVerbInflCP ; 兆す:兆す UVerbInflCP ; 兆さ:兆さ UVerbInflCP ; 兆そう:兆そう UVerbInflCP ; @@ -559227,12 +559228,8 @@ LEXICON Suffix じょう%:じょう # ; 平米%:平米 # ; へいべい%:へいべい # ; -円%:円 # ; 銭%:銭 # ; 両%:両 # ; -ドル%:ドル # ; -セント%:セント # ; -ユーロ%:ユーロ # ; フラン%:フラン # ; ペソ%:ペソ # ; ルーブル%:ルーブル # ; @@ -561328,6 +561325,7 @@ LEXICON Suffix まで%:まで # ; が%:が # ; だ%:だ # ; +億%:億 # ; LEXICON Punctuation 。%:。 # ; diff --git a/apertium-jpn.jpn.rlx b/apertium-jpn.jpn.rlx index b6afb27..aea3b29 100644 --- a/apertium-jpn.jpn.rlx +++ b/apertium-jpn.jpn.rlx @@ -152,6 +152,16 @@ SELECT (adj) IF (0 ("主に")) ; SELECT (v) IF (0 ("する"))(-1 (n)) ; +SELECT (suff) IF (0 ("で"))(-1 (n)) ; + +SELECT (n) IF (0 ("ため"))(-1 (v)) ; + +SELECT (pref) IF (0 ("約"))(1 (num)) ; + +SELECT (suff) IF (0 ("ドル"))(-1 (suff)) ; + +SELECT (suff) IF (-1 (suff))(-2 (num)) ; + # Resources: # http://visl.sdu.dk/cg3.html # http://groups.google.com/group/constraint-grammar