[libvoikko] VoikkoGrammarError and voikkoGetGrammarErrorShortDescription
Francis Tyers
ftyers at prompsit.com
Mon Nov 4 17:20:36 EET 2013
At the moment VoikkoGrammarError is typedeffed as voikko_grammar_error.
I would like to add 'char *title' to voikko_grammar_error, would this be
ok ?
Also, what would the best way be to load the error descriptions from the
XML file ? Keep a map<pair<string, string>, pair<string, string>> in the
CgGrammarChecker.hpp with pair<code, lang>, pair<title, description>,
e.g.
map< pair<"orth-prop", "en">, pair<"Capitalisation of proper nouns",
"The proper noun "$1" should begin with a capital letter."> >
Then pass this to the CgRuleEngine class via the constructor ?
I would probably have to edit the DictionaryLoader too, to pass through
the path to the errors.xml file.
Any thoughts ?
Fran
More information about the Libvoikko
mailing list