checkers

Checkers Module: This module contains all the checks that can be done after parsing a message. The module contains multiple classes each targeting an individual function. The classes are organized based on the broad area they are responsible for. The main functions are Bully, Apology and Profanity with scope to add more.

 1"""
 2Checkers Module:
 3This module contains all the checks that can be done after parsing a message.
 4The module contains multiple classes each targeting an individual function.
 5The classes are organized based on the broad area they are responsible for.
 6The main functions are Bully, Apology and Profanity with scope to add more.
 7"""
 8
 9
10class Checker:
11    """
12    An Abstract Class for all Checker Classes. It is inherited by all the Checker objects
13    """
14
15    def check_message(self, msg: str):
16        """
17        Function to parse the message and check for a trait in the message.
18        :param msg:
19        :return:
20        """
21        NotImplementedError
class Checker:
11class Checker:
12    """
13    An Abstract Class for all Checker Classes. It is inherited by all the Checker objects
14    """
15
16    def check_message(self, msg: str):
17        """
18        Function to parse the message and check for a trait in the message.
19        :param msg:
20        :return:
21        """
22        NotImplementedError

An Abstract Class for all Checker Classes. It is inherited by all the Checker objects

Checker()
def check_message(self, msg: str):
16    def check_message(self, msg: str):
17        """
18        Function to parse the message and check for a trait in the message.
19        :param msg:
20        :return:
21        """
22        NotImplementedError

Function to parse the message and check for a trait in the message.

Parameters
  • msg:
Returns