4 ms·
In this case, there's actually an entry in the dictionary for 「気に入る」, so it will figure out that this is a conjugation of that entry, and use 「気に入る」and its most
by chrisvasselli 11y ago
In this case, there's actually an entry in the dictionary for 「気に入る」, so it will figure out that this is a conjugation of that entry, and use 「気に入る」and its most common meaning as the flashcard.
Many of these kinds of phrases exist in the dictionary (I'm using JMDict under the hood), but for those that don't, it would create two flashcards, one for each word. The flashcards are set by default to use the most common meaning, but if there are alternative meanings, you can choose to show those in addition, or instead of the most common meaning.
- Nadya 11y ago* internet high five * Awesome. I couldn't think of how to phrase the problem. "Short phrases with meanings that don't match the individual words used being parsed as individual words instead of the short phrase" is kind of wordy and a little confusing.
- chrisvasselli 11y agoHeheh, got it! Yeah, fortunately JMDict is a really mature project, and has got a ton of these kinds of things covered.
- thaumasiotes 11y ago> "Short phrases with meanings that don't match the individual words used being parsed as individual words instead of the short phrase" is kind of wordy and a little confusing. These are called "idioms", or, if you want to be really technical for its own sake, "non-compositional phrases". But I note that, at least according to wikipedia, "idiom" is the technical term as well as the vernacular one. https://en.wikipedia.org/wiki/Phraseme#Non-compositional_phrasemes:_Idioms https://en.wikipedia.org/wiki/Phraseme#Non-compositional_phr...
- Nadya 11y agoYou know those times where you need to describe something but are forgetting the word so you call a "bridge" "an elevated structure built to allow crossing over bodies of water and roads"? That was one of those times... though I appreciate you calling me out on it. :)
- MarkSweep 11y agoWhich morphological analyzer are you using to do the deconjugation?
- chrisvasselli 11y agoI actually ended up rolling my own. There are some tricky cases involved, and I wanted full control over it.
- chrisvasselli 11y agoActually, I should give some proper credit here. My husband Justin wrote this component, which turned out awesome. He's really into Japanese linguistics. =)
- glandium 11y agoWould you have specific examples of things that wouldn't have been possible with e.g. mecab or chasen?
- chrisvasselli 11y agoTo be honest, I haven't spent a huge amount of time exploring mecab and chasen, although I probably should. The decision to write our own was partially just because it seemed like a fun academic exercise, and we learned a lot from building it. We also have some features in mind for the future that it will be useful to have deep control over the the tokenizing and deconjugation, but those haven't made it into the app yet.