Fix typo in method name

This commit is contained in:
Ivan Skytte Jørgensen
2017-12-05 17:41:41 +01:00
parent 50f255ed60
commit c0f2276667
4 changed files with 8 additions and 8 deletions

@ -103,7 +103,7 @@ int main(int argc, char **argv) {
unsigned word_form_count = 0;
for(auto le = l.first_entry(); le; le=l.next_entry(le)) {
printf("===== %s\n", part_of_speech_str(le->part_of_speech));
auto v(le->query_all_explicit_ford_forms());
auto v(le->query_all_explicit_word_forms());
for(auto wf : v) {
printf("%.*s",(int)wf->written_form_length, wf->written_form);
for(unsigned j=0; j<sto::WordForm::max_attributes; j++)

@ -8,7 +8,7 @@
static const char version_1_signature[80] = "parsed-sto-v1\n";
std::vector<const sto::WordForm *> sto::LexicalEntry::query_all_explicit_ford_forms() const {
std::vector<const sto::WordForm *> sto::LexicalEntry::query_all_explicit_word_forms() const {
std::vector<const WordForm*> entries;
const char *p = explicit_word_forms;
for(unsigned i=0; i<explicit_word_form_count; i++) {

@ -115,7 +115,7 @@ struct LexicalEntry {
uint8_t explicit_word_form_count;
char explicit_word_forms[];
const WordForm *query_first_explicit_word_form() const { return reinterpret_cast<const WordForm*>(explicit_word_forms); }
std::vector<const WordForm *> query_all_explicit_ford_forms() const;
std::vector<const WordForm *> query_all_explicit_word_forms() const;
const WordForm *find_first_wordform(const std::string &word) const;
};

@ -127,7 +127,7 @@ void WordVariationGenerator_danish::find_simple_attribute_difference_wordforms(s
auto source_word(source_words[i]);
auto matches(lexicon.query_matches(source_word));
for(auto match : matches) {
auto wordforms(match->query_all_explicit_ford_forms());
auto wordforms(match->query_all_explicit_word_forms());
for(auto wordform : wordforms) {
if(same_wordform_as_source(*wordform,source_word) &&
wordform->has_attribute(from_attr))
@ -163,7 +163,7 @@ void WordVariationGenerator_danish::find_simple_attribute_match_wordforms(std::v
auto source_word(source_words[i]);
auto matches(lexicon.query_matches(source_word));
for(auto match : matches) {
auto wordforms(match->query_all_explicit_ford_forms());
auto wordforms(match->query_all_explicit_word_forms());
for(auto wordform : wordforms) {
if(same_wordform_as_source(*wordform,source_word)) {
//found the word match. Now look for other wordforms with exactly the same attributes. Those are alternate spellings
@ -318,7 +318,7 @@ void WordVariationGenerator_danish::transliterate_verb_acute_accent(std::vector<
bool is_imperative = false;
auto matches(lexicon.query_matches(source_word));
for(auto match : matches) {
auto wordforms(match->query_all_explicit_ford_forms());
auto wordforms(match->query_all_explicit_word_forms());
for(auto wordform : wordforms) {
if(same_wordform_as_source(*wordform,source_word) &&
wordform->has_attribute(sto::word_form_attribute_t::verbFormMood_imperative))
@ -369,7 +369,7 @@ void WordVariationGenerator_danish::make_verb_past_past_variants(std::vector<Wor
const sto::WordForm *wordform_past_participle = NULL;
const sto::WordForm *wordform_preterite = NULL;
for(auto match : matches) {
auto wordforms(match->query_all_explicit_ford_forms());
auto wordforms(match->query_all_explicit_word_forms());
for(auto wordform : wordforms) {
if(same_wordform_as_source(*wordform,source_word) &&
wordform->has_attribute(sto::word_form_attribute_t::tense_past) &&
@ -463,7 +463,7 @@ void WordVariationGenerator_danish::make_verb_past_past_variants(std::vector<Wor
const sto::WordForm *wordform_past_participle = NULL;
bool is_preterite = false;
for(auto match : matches) {
auto wordforms(match->query_all_explicit_ford_forms());
auto wordforms(match->query_all_explicit_word_forms());
for(auto wordform : wordforms) {
if(same_wordform_as_source(*wordform,source_word) &&
wordform->has_attribute(sto::word_form_attribute_t::tense_past) &&