jpd-breader
jpd-breader copied to clipboard
Suggestion: When parsing a link on jpdb.io, if it leads to a word, parse it as that word.
It would be nice if when run on the jpdb itself, breader recognized links to words instead of parsing them.
This would be especially nice when browsing contents of decks.
Similar case when parsing a vocabulary page.
Scenario 1:
Steps:
- Go to https://jpdb.io/textbook/9/minna-no-nihongo-i/vocabulary-list?sort_by=by-frequency-global&order=reverse
- Run the breader
Expected:
- The first word (バンコク) is parsed as https://jpdb.io/vocabulary/1525960/%E3%83%90%E3%83%B3%E3%82%B3%E3%82%AF#a (all countries; the whole world; universal; all nations), as it is listed
Actual:
- The first word is parsed as https://jpdb.io/vocabulary/1100160/%E3%83%90%E3%83%B3%E3%82%B3%E3%82%AF/%E3%83%90%E3%83%B3%E3%82%B3%E3%82%AF (Bangkok (Thailand))
Note:
I don't care what the textbook actually uses バンコク for, the deck says "all countries", so the breader should do the same.
Scenario 2:
Steps:
- Go to https://jpdb.io/vocabulary/2004390/%E4%B8%8B/%E3%82%82%E3%81%A8 (moto)
- Run the breader
Expected:
- The headword is parsed as itself, i.e. https://jpdb.io/vocabulary/2004390/%E4%B8%8B/%E3%82%82%E3%81%A8 (moto)
Actual:
- The headword is parsed as https://jpdb.io/vocabulary/1184140/%E4%B8%8B/%E3%81%97%E3%81%9F (shita)