Lore is a parameter which describes if the card's Effect text contains the characters.
It is not case-sensitive.
Example: Giant Rat
Lore:Earth Monster ----would match to be true
Lore:Water Monster ----would match to be false
This does not apply to flavor text, which cannot be checked for.