Closed Mochahintwain closed 3 years ago
@Mochahintwain can you please add this issue to the right repository? You have added this to an Azure repository.
This pattern will not work, since "But" is not lowercase. You have to match on "but". If you only want to match this on the start of a sentence, then you have to add this to the pattern.
If you make these changes, the pattern will detect the word.
Thanks for noticing....I looked up how to change the repository but can't find it...only found it for project boards but we don't have a board. How does that work?
To match any sentence with the word but I have to write:
pattern1 = [
{"LOWER": "but"}, {"IS_SENT_START": False, "OP": "*"},
]
Is that correct?
Example: We wanted to talk last week but it got canceled
Hi @marvinbuss , I noticed there are functions with single words ergo only one pattern. Will the model detect sentences with the words or does the function only work when there are sentences with one word. I inserted a function for you to check.
` def _positive_word08( self, rule_id="R0079", description="The word ""But"" implies a conflict. It will subconsciously affect your recipient. To make sure you keep it positive use a stronger, more confident word if possible. ", info="Try to be very precise on what you want and use the present form if possible.", example_pos="And", example_neg="But" ) -> None: """ Check for negative and positive tone.