# BR-MSG-12

When the search for missed occurrences is active, then it ignores case.

Defined in [Protect a message before it is sent to the model](https://docs.piighost.dev/en/domain/processes/protect-a-message/#br-msg-12).

## Where the rule lives

- [`WordBoundaryExpander`](https://github.com/Athroniaeth/piighost/blob/master/src/piighost/components/expander/word_boundary.py#L11)
- [`WordBoundaryExpander.__init__()`](https://github.com/Athroniaeth/piighost/blob/master/src/piighost/components/expander/word_boundary.py#L25)
- [`WordBoundaryExpander._find_occurrences()`](https://github.com/Athroniaeth/piighost/blob/master/src/piighost/components/expander/word_boundary.py#L29)

## Direct tests

- [`tests/components/expander/test_word_boundary.py::TestConformance::test_satisfies_the_port`](https://github.com/Athroniaeth/piighost/blob/master/tests/components/expander/test_word_boundary.py#L21)
- [`tests/components/expander/test_word_boundary.py::TestExpand::test_added_detection_inherits_label_and_confidence`](https://github.com/Athroniaeth/piighost/blob/master/tests/components/expander/test_word_boundary.py#L47)
- [`tests/components/expander/test_word_boundary.py::TestExpand::test_case_insensitive_by_default`](https://github.com/Athroniaeth/piighost/blob/master/tests/components/expander/test_word_boundary.py#L68)
- [`tests/components/expander/test_word_boundary.py::TestExpand::test_case_sensitive_when_asked`](https://github.com/Athroniaeth/piighost/blob/master/tests/components/expander/test_word_boundary.py#L75)
- [`tests/components/expander/test_word_boundary.py::TestExpand::test_finds_a_missed_occurrence`](https://github.com/Athroniaeth/piighost/blob/master/tests/components/expander/test_word_boundary.py#L32)
- [`tests/components/expander/test_word_boundary.py::TestExpand::test_finds_an_occurrence_glued_to_an_apostrophe`](https://github.com/Athroniaeth/piighost/blob/master/tests/components/expander/test_word_boundary.py#L39)
- [`tests/components/expander/test_word_boundary.py::TestExpand::test_keeps_the_original_detections`](https://github.com/Athroniaeth/piighost/blob/master/tests/components/expander/test_word_boundary.py#L27)
- [`tests/components/expander/test_word_boundary.py::TestExpand::test_no_missed_occurrence_returns_the_input`](https://github.com/Athroniaeth/piighost/blob/master/tests/components/expander/test_word_boundary.py#L56)
- [`tests/components/expander/test_word_boundary.py::TestExpand::test_respects_word_boundaries`](https://github.com/Athroniaeth/piighost/blob/master/tests/components/expander/test_word_boundary.py#L61)
- [`tests/components/expander/test_word_boundary.py::TestOverlap::test_skips_an_occurrence_inside_a_kept_detection`](https://github.com/Athroniaeth/piighost/blob/master/tests/components/expander/test_word_boundary.py#L83)
- [`tests/components/expander/test_word_boundary.py::TestOverlap::test_skips_an_occurrence_straddling_a_kept_detection`](https://github.com/Athroniaeth/piighost/blob/master/tests/components/expander/test_word_boundary.py#L91)
- [`tests/components/expander/test_word_boundary.py::TestOverlap::test_the_longer_value_claims_a_shared_occurrence`](https://github.com/Athroniaeth/piighost/blob/master/tests/components/expander/test_word_boundary.py#L99)
- [`tests/components/expander/test_word_boundary.py::TestOverlap::test_the_result_never_overlaps_when_the_input_does_not`](https://github.com/Athroniaeth/piighost/blob/master/tests/components/expander/test_word_boundary.py#L108)
- [`tests/pipeline/test_pipeline.py::TestAnonymize::test_all_stages_compose`](https://github.com/Athroniaeth/piighost/blob/master/tests/pipeline/test_pipeline.py#L94)
- [`tests/pipeline/test_pipeline.py::TestExpansion::test_an_occurrence_inside_a_detection_does_not_break_rendering`](https://github.com/Athroniaeth/piighost/blob/master/tests/pipeline/test_pipeline.py#L167)
- [`tests/pipeline/test_pipeline.py::TestUnicodeSpaces::test_a_value_keeps_one_token_whatever_its_spaces`](https://github.com/Athroniaeth/piighost/blob/master/tests/pipeline/test_pipeline.py#L218)

## Indirect tests

No indirect test found.

## Used by

- [`WordBoundaryExpanderConfig.build()`](https://github.com/Athroniaeth/piighost/blob/master/src/piighost/config/models/expander.py#L15)
- [`WordBoundaryExpanderConfig`](https://github.com/Athroniaeth/piighost/blob/master/src/piighost/config/models/expander.py#L9)

Read from the code graph graphify builds, at the places the domain documentation gives.
