Skip to content

Commit

Permalink
more bugs found
Browse files Browse the repository at this point in the history
  • Loading branch information
cqb13 committed Mar 1, 2024
1 parent 3edc05a commit 82c7135
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/translators/latin_to_english/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ pub fn find_form(latin_word: &str, reduced: bool) -> Option<Vec<LatinTranslation
output
}

//??? weird issue, when word searched alone, 1 result but when with others, different result ("cur" vs "cur sum hic")
fn check_stems(
latin_word: &str,
latin_word_inflections: &Vec<Inflection>,
Expand Down Expand Up @@ -88,6 +89,7 @@ fn check_stems(
std::process::exit(0);
}
};

//???: Weird issue here where some words get inflections by should not (cur)
if n_from_stem.len() == 1 && n_from_stem[0] != n_from_inflection[0] {
continue;
Expand Down
1 change: 0 additions & 1 deletion src/use_data/parsers/latin_dictionary_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use crate::dictionary_structures::dictionary_values::LatinWordInfo;
use crate::use_data::utils::word_fits_filters;
use rand::Rng;

//TODO: Generate principle parts, and check for extension senses in parse.
pub fn parse_latin_dictionary(
dictionary: Vec<LatinWordInfo>,
pos_list: Option<Vec<PartOfSpeech>>,
Expand Down

0 comments on commit 82c7135

Please sign in to comment.