Closed paploo closed 1 year ago
Let's get some specification together:
Using https://jlptsensei.com/jlpt-n5-grammar-list/ as a guide, a grammar rule is mainly:
TE_RULE
or NEGATIVE_FORM
for things like `ーて + もいいです' and '全然 + negative')A few thoughts:
For furigana, maintaining/reading a sheet might be easier with something like:
{行|い}きました
or {神|じん}{社|じゃ}
.
Alternatively, I could have each separate with per-character tokenization:
行きました
and い|き|ま|し|た` or
神社`and じん|じゃ`. To fit in one field, we could combine, like:
{神社}{じん|じゃ}`
The first:
The second:
|
and match by index, butThe conclusion might be to combine these:
神社に行きました
could become:
{神社|じん・じゃ}に{行|い}きました
This would produce:
<ruby>神<rt>じん</rt></ruby><ruby>社<rt>じゃ</rt></ruby><ruby>に</ruby><ruby>行<rt>い</rt></ruby><ruby>きました</ruby>
which renders as:
神社に行きました
This might be better done as an improvement towards the end, and not scoped in the initial work.
Note that a chunk of work associated with this is:
Base
, Vocabulary
and Grammar
namespaces.The PR for the branch wasn't the final one resolving the ticket.
Need a grammar rules deck.
Each rule should have one or more examples. see JLPT先生 for some structure ideas.
The necessary cards are still TBD.