-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
でした not recognized #89
Comments
Original comment by |
|
Original comment by Attachments: |
Original comment by |
Original comment by |
Original comment by |
Original comment by Attachments: |
Original comment by |
This seems to have changed. I would have thought でした would be deinflected to です but it doesn't seem to be so maybe there's another bug. |
Should be easy to look at deinflection code and figure out what it does when given でした. |
I take a look at the dictionary and find that there is no entry for でした unlike です so any でした followed by nouns will not be recognized by the extension. (there is a ませんでした in deinflect.dat so verbs will be recognized correctly.) So should the fix still be implemented on the code or can I add an entry of でした directly in the dictionary files? |
That's a good observation and investigation. Thanks! As you expected, it should be enough to update deinflect.dat so that it handles this congutation and outputs the です entry when you hover でした. The problem is that I think it should already be happening! Since there's a line in deinflect.data which changes した to す: rikaikun/extension/data/deinflect.dat Line 235 in e85f33b
So the reason for inspecting the code which handles the deinflection data is to figure out why that transformation isn't happening. It could be that the code has special logic for detecting verbs which excludes です for example. In that case, it's probably safest to add an entry to deinflect.dat to handle the case as you mentioned. In summary, I'd suggestion two steps:
#257 is related since it's about creating a better system for handling that data though it should be possible to update without a big rewrite just by looking at the references in that issue. |
Thank you for the quick response! |
I get rikaikun to recognize でした as です by adding one more conditional after line 495, Should I submit a pull request? |
I saw your PR so will look at it over there. In general, for small changes sending PR is always fine since the worst that can happen is that changes are requested. Thanks for checking! |
We decided that です was too different to reuse verb logic so the way forward is to add a definflection type for the copula as described in #988 |
…988) - Adds a new type of deinflection for the copula, だ. - Adds mappings for all common conjugations to deinflect.dat. - See http://www.japaneseprofessor.com/reference/grammar/conjugations-of-the-japanese-copula/ - For handling polite negative じゃないです update general adjective handling to recognize polite です addition. Fixes #89
🎉 This issue has been resolved in version 2.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Original issue reported on code.google.com by
ciccio.d...@gmail.com
on 23 Jul 2013 at 12:44The text was updated successfully, but these errors were encountered: