Anders429 / word_filter

A Word Filter for filtering text.
Apache License 2.0
1 stars 0 forks source link

Grapheme subgraphs. #22

Closed Anders429 closed 3 years ago

Anders429 commented 3 years ago

Fixes #20. This introduces grapheme subgraphs, which are inserted into graphs when multi-character graphemes are encountered. This allows for repeated character matching to take graphemes into account. while also matching on a per-character basis.

codecov-commenter commented 3 years ago

Codecov Report

Merging #22 (d3df23e) into master (fd823f7) will decrease coverage by 0.01%. The diff coverage is 82.24%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #22      +/-   ##
==========================================
- Coverage   89.36%   89.34%   -0.02%     
==========================================
  Files           4        4              
  Lines         809      892      +83     
==========================================
+ Hits          723      797      +74     
- Misses         86       95       +9     
Impacted Files Coverage Δ
src/node.rs 78.87% <69.86%> (-11.83%) :arrow_down:
src/lib.rs 85.57% <81.08%> (-0.63%) :arrow_down:
src/walker.rs 95.29% <91.34%> (+4.34%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update fd823f7...d3df23e. Read the comment docs.

Anders429 commented 3 years ago

As a side note, this contains some further work towards #17, although it isn't yet implemented on WordFilter itself, due to the function pointer.