Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

Identifies tokens which look like emails and flags them with the "EMAIL" flag.


Operates On:  Lexical Items with TOKEN

Saga_is_recognizer

Info

Currently handles the following situations:

  • Local part could contain letters, digits and symbols except square/angle brackets, exclamation/question mark and quotes

  • Local part cannot start or finish with period (.). Also it cannot have repeated periods in the middle

  • Quotes are permitted if entire local part is quoted. When quoted, any symbol is permitted except for exclamation and question marks

  • Domain part could contain only letters, digits and the symbol dot (.) and/or dash (-)

  • Symbols dot (.) and dash (-) cannot be placed at the beginning or the end. Also they cannot be repeated in the middle

  • Domain could also be an IP v4 number


Include Page
Generic Configuration Parameters
Generic Configuration Parameters

Flags

Lex-Item Flags:

  • EMAIL- Identifies the token as an email.
  • SEMANTIC_TAG - Identifies all lexical items which are semantic tags.

Example

Code Block
languagetext
themeFadeToGrey
V--------------[please send an email to [email protected] thank you ]---------------V 
^-[please]-V-[send]-V-[an]-V-[email]-V-[to]-V-[[email protected]]-V-[thank]-V-[you]-^ 
                                            ^-----------[{email}]------------^