You define a list of flags, each mapping a flag name to a literal search string. The action checks whether each search string appears in the input text (case-sensitive substring match). If the text ...
Using boolean flags in function parameters is a trap - enums should probably be used instead. Boolean flags can lead to confusion and maintenance issues, especially when dealing with multiple output ...