-
Notifications
You must be signed in to change notification settings - Fork 17
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
Parse non-tabular grammar information #21
Comments
The word Mönch uses a similar format for grammar.
|
Verbs like schwindeln also use a non-tabular grammar format.
We should first decide what should the function return for words like these. |
This bug is still valid in 0.10.0 . |
the word Bereich has the same problem - the section doesn't contain any tables, just the text |
Before this commit, grammar_raw returned None if no '.grammatik' element is found. This leads to TypeError in 'Word.grammar' and seems unintuitive, since in other cases an empty list is retuned (see radomirbosakGH-21). Now grammar_raw returns an empty list if no grammar section is found.
Before this commit, grammar_raw returned None if no '.grammatik' element is found. This leads to TypeError in 'Word.grammar' and seems unintuitive, since in other cases an empty list is retuned (see GH-21). Now grammar_raw returns an empty list if no grammar section is found.
A related attribute |
The above new attribute should be enough and I won't be implementing more detailed parsing of a highly variable text attribute. I will close this as out of scope. |
duden.de, however has this text supplied in the grammar section:
The script shouldn't omit this. However it is not clear in which form should it present the information in this rare case of non-table-like format.
The text was updated successfully, but these errors were encountered: