Skip to content

Commit

Permalink
debug: add additional debug log of raw hunspell return pre quirk filt…
Browse files Browse the repository at this point in the history
…ering
  • Loading branch information
drahnr committed Sep 16, 2022
1 parent ac5d374 commit 16e5e43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/checker/hunspell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@ fn obtain_suggestions<'s>(
.filter(|x| x.len() > 1) // single char suggestions tend to be useless
.collect::<Vec<_>>();

log::debug!(target: "hunspell", "{word} --{{suggest}}--> {replacements:?}");

// strings made of vulgar fraction or emoji
if allow_emojis && consists_of_vulgar_fractions_or_emojis(&word) {
log::trace!(target: "quirks", "Found emoji or vulgar fraction character, treating {} as ok", &word);
Expand Down

0 comments on commit 16e5e43

Please sign in to comment.