def _suffix_rules(token, tag="<STR_LIT>"):
if isinstance(token, (list, tuple)):<EOL><INDENT>token, tag = token<EOL><DEDENT>if token.endswith("<STR_LIT>"):<EOL><INDENT>tag = "<STR_LIT>"<EOL><DEDENT>if token.endswith("<STR_LIT>"):<EOL><INDENT>tag = "<STR_LIT>"<EOL><DEDENT>if token.endswith("<STR_LIT:s>") and not token.endswith(("<STR_LIT>", "<STR_LIT>", "<STR_LIT>")):<EOL><INDENT>tag = "<STR_LIT>"<EOL><DEDENT>if token.endswith(("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>")) or "<STR_LIT:->" in token:<EOL><INDENT>tag = "<STR_LIT>"<EOL><DEDENT>if token.endswith("<STR_LIT>"):<EOL><INDENT>tag = "<STR_LIT>"<EOL><DEDENT>if token.endswith(("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>")):<EOL><INDENT>tag = "<STR_LIT>"<EOL><DEDENT>return [token, tag]<EOL>
Default morphological tagging rules for English, based on word suffixes.