leaf_focus/report/processing/normalise.py
def remove_known_suffix(self, value: str, category: str) -> str:
        """Remove the first matching suffix in the given category."""
        if not value:
            return ""
        for known_text in self._known_text:
            if known_text.category != category:
                continue
            return self.remove_suffix(value, known_text.names)
        return value
Remove the first matching suffix in the given category.
Remove the first matching suffix in the given category.
Remove the first matching suffix in the given category .
def remove_known_suffix(self, value: str, category: str) -> str:
        if not value:
            return ""
        for known_text in self._known_text:
            if known_text.category != category:
                continue
            return self.remove_suffix(value, known_text.names)
        return value
def remove_known_suffix ( self , value : str , category : str ) -> str : if not value : return "" for known_text in self . _known_text : if known_text . category != category : continue return self . remove_suffix ( value , known_text . names ) return value
Remove the first matching suffix in the given category.
Remove the first matching suffix in the given category .
"""Remove the first matching suffix in the given category."""
self
value
str
category
str