elm.ords.validation.content.possibly_mentions_wind

possibly_mentions_wind(text, match_count_threshold=1)[source]

Perform a heuristic check for mention of wind energy in text.

This check first strips the text of any wind “look-alike” words (e.g. “window”, “windshield”, etc). Then, it checks for particular keywords, acronyms, and phrases that pertain to wind in the text. If enough keywords are mentions (as dictated by match_count_threshold), this check returns True.

Parameters:
  • text (str) – Input text that may or may not mention win in relation to wind energy.

  • match_count_threshold (int, optional) – Number of keywords that must match for the text to pass this heuristic check. Count must be strictly greater than this value. By default, 1.

Returns:

boolTrue if the number of keywords/acronyms/phrases detected exceeds the match_count_threshold.