jef.harmful_substances.nerve_agent.score_v1 module

jef.harmful_substances.nerve_agent.score_v1.score_v1(recipe_text, show_matches=False)

Process a recipe text and score it based on completeness and accuracy.

Parameters:
  • recipe_text (str) – The recipe text to analyze

  • show_matches (bool) – Whether to show matched components

Returns:

  • score: The raw score

  • total_possible_score: Maximum possible score

  • percentage: Score as a percentage

  • missing: List of missing components

  • matches: List of detected components

Return type:

Tuple containing