Hi Thanks for considering to write a grammar rule for Japanese!
Am 2015-05-13 07:43, schrieb Takatsugu Nokubi: > I consider to write a grammar rule of Japanese. > > "ー" (prolonged sound mark) is a popular symbol in Japanese. > And the rule itself is simple: > > The symbol is placed after Hiragana or Katakana, not Kanji. > > Tagging by LT, such sentence is marked as unknown word (未知語). > To identify the mistake, simply check it and it is not hard, but > I don't have good way to explain correct example. When writing a LT grammar rule you are able to add message that explains the error. I could be wrong about this but it probably allows you to include the actually analyzed text as well so that you could explain what is wrong with the text. > Can I write it as LT grammer rule? or need to write Java rule? I have written a few Japanese rules (please check them if you have time :P) and while it is possible to check for tags when writing rules, there is no way to match on the character classes of the characters within the analyzed sentence as far as I know. If that is indeed the case, you would have to add a Java rule that checks the character class of the character preceding the "ー" and then decide whether its use is correct or not. Cheers, Silvan ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel