#First, for each startterm, find all results in df that start with, add classification flag, and add interpretation.
    for i,s in enumerate(terms_df[terms_col]):
        df[&#39;CLASS_FLAG&#39;].where(~df[description_col].str.startswith(s,na=False),4,inplace=True)
        df[&#39;LITHOLOGY&#39;].where(~df[description_col].str.startswith(s,na=False),terms_df.loc[i,&#39;LITHOLOGY&#39;],inplace=True)
    df[&#39;BEDROCK_FLAG&#39;].loc[df[&#34;LITHOLOGY&#34;] == &#39;BEDROCK&#39;]
    
    if verbose:
       