Implement the `CharNormalizer` trait on the `LowercaseNormalizer` struct
Kerollmops opened this issue · 0 comments
Kerollmops commented
It would be much better to directly implement the CharNormalizer
trait instead of the Normalizer
trait on the LowercaseNormalizer
structure. This way, the char map will be created if necessary. Currently, the char map could be missing. You can find an example of how to implement it in the ChineseNormalizer
.
charabia/charabia/src/normalizer/lowercase.rs
Lines 15 to 35 in de62ab9