Coder Social home page Coder Social logo

goi's People

Contributors

paploo avatar

Watchers

 avatar  avatar

goi's Issues

Prefix/Suffix grammar hints on cards

Need a way to encode simple prefix/suffix grammar pieces onto cards without affecting text-to-speech.

Use cases include:

  • -て + {word}, such as 「もいいです」 or 「はいけまっせん」
  • {word} + negative, such as 「ぜんぜん」、「何も」, and 「別に」
  • used as a prefix or suffix qualifier

Possible solutions include:

  • Using a word type or sub-type to capture (e.g. PREFIX and SUFFIX already tell me about one of the cases)
  • Explicit encoding of prefix/suffix fields, giving flexibility.

Note: In Anki these should be japanese_prefix and japanese_suffix fields so that I can control which cards to put them on (e.g. definition vs listening cards).

Grammar should have some formatting validation rules

Namely:

  • The title should check that capital letters (when not directly next to other roman characters) are full-width.
  • The meaning should contain no full-width or half width letters, but just normal letters.

Polishing

Now that the feature set is starting to stabilize, do some polishing:

  • Make the input/output files clearer by arranging in directories and documenting.
  • Make first-time use of schema migrations and the various data load files (including the kanji!) easier, including making loader scripts and updating documentation.
  • Use OptionParser on arguments to bin

Simple Validation Reporting on Vocabulary Load

AC
Insert validation and/or reporting into vocabulary transcode via the transformer tooling:

  • Report on any entries with same preferred spelling or kanji spelling (this is not always wrong, but should know to make sure since hard to clean-up in Anki).
  • Fail if more than one vocabulary entry has the same ID.

Grammar rule titles with brackets don't render right in Anki

  • In Goi, the grammar rule title is rendered using Goi furigana templating, which uses curly braces; this means curly brace literals are stripped out as being part of the furigana.
  • In Anki, in the grammar rule title, square brackets are taken for its furigana template, and thus don't render right.

Would like to have the following behavior:

  • Square brackets in the JSON for the title should—in the Anki exporter—output as HTML entities to make them render correctly (And or use an alternative bracket character).
  • Curly braces should continue to generate furigana correctly into braces in Anki, allowing for furigana.

Additionally:

  • Parens in JSON should render as parens in Anki.
  • Angle brackets in the JSON can be used for HTML tags for formatting; as this is potentially useful, no policy is set for them at this time.

Grammar Rules Deck

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.