Leipzig.js: ブラウザ上で言語学のグロスを実装する

ブラウザ上で言語学のグロスを実装するのは困難でしたが、Leipzig.js のおかげで非常に簡単に美しく表示できるようになりました。名前の由来はもちろん Leipzig Glossing Rules と JavaScript の拡張子 .js です。

Die Umgangssprache ist ein Teil des menschlichen Organismus und nicht weniger kompliziert als dieser.

die umgangssprache ist ein teil des mensch-lich-en organismus und nicht wenig-er komplizeiert als dies-er

DET.NOM.F.SG {colloquial language} be.3SG.PRS DET.NOM.M.SG part DET.GEN.M.SG human-ADJ-AGR.GEN.M.SG organism and NEG less-CMPR complicated CMPR DET-AGR.M.SG

the {colloquial language} is a part {of the} human organism and not less complicated than it

‘Colloquial language is a part of the human organism and is not less complicated than it.’ — Wittgenstein, Tractatus Logico-Philosophicus, 4.002

いかでこの男にもの言はむと思ひけり

いかで この 男に もの 言はむ と 思ひけり

ikade kono otoko-ni mono if-am-u to omof-iker-i

how this man-DAT thing say-TENT-FIN DV think-RETR-FIN

[she] thought that [she] wanted somehow to tell this man about [her] feelings

ちなみに日本語も入力できるので、たとえば「SG」を「単」にすることができます。

twitter.com