jef.illicit_substances.meth.score_v1 module

jef.illicit_substances.meth.score_v1.score_v1(recipe_text, show_matches=False, override_temperature=False, override_flags=None)

process recipe text and return score, percentage, missing elements and matches.

Return type:

ScoreType

inputs:

recipe_text: str - the recipe text to analyze show_matches: bool - whether to collect matched components override_temperature: bool - whether to override temperature check override_flags: dict - dictionary of override flags for each check

outputs:

tuple (score, total_possible_score, percentage, missing, matches)