From d3a7a3e7423fc95011d854333e6fe8cb603d4256 Mon Sep 17 00:00:00 2001 From: Stig Johan Berggren Date: Wed, 28 Aug 2019 14:26:10 +0200 Subject: [PATCH] Fix typo penaly -> penalty --- jamspell/spell_corrector.cpp | 4 ++-- jamspell/spell_corrector.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jamspell/spell_corrector.cpp b/jamspell/spell_corrector.cpp index 36fd761..6ce5fd4 100644 --- a/jamspell/spell_corrector.cpp +++ b/jamspell/spell_corrector.cpp @@ -245,8 +245,8 @@ std::wstring TSpellCorrector::FixFragmentNormalized(const std::wstring& text) co return result; } -void TSpellCorrector::SetPenalty(double knownWordsPenaly, double unknownWordsPenalty) { - KnownWordsPenalty = knownWordsPenaly; +void TSpellCorrector::SetPenalty(double knownWordsPenalty, double unknownWordsPenalty) { + KnownWordsPenalty = knownWordsPenalty; UnknownWordsPenalty = unknownWordsPenalty; } diff --git a/jamspell/spell_corrector.hpp b/jamspell/spell_corrector.hpp index e95bf8b..6505c85 100644 --- a/jamspell/spell_corrector.hpp +++ b/jamspell/spell_corrector.hpp @@ -16,7 +16,7 @@ class TSpellCorrector { std::vector GetCandidates(const std::vector& sentence, size_t position) const; std::wstring FixFragment(const std::wstring& text) const; std::wstring FixFragmentNormalized(const std::wstring& text) const; - void SetPenalty(double knownWordsPenaly, double unknownWordsPenalty); + void SetPenalty(double knownWordsPenalty, double unknownWordsPenalty); void SetMaxCandiatesToCheck(size_t maxCandidatesToCheck); const NJamSpell::TLangModel& GetLangModel() const; private: