parameters: (datum, construct)
docstring: Add clauses to the construct if they're missing
      Otherwise increment their count by one.
  
      Keyword arguments:
      datum -- Data construct containing clauses to check.
      construct -- Construct to add or increment clause count.
docstring_summary: Add clauses to the construct if they're missing
      Otherwise increment their count by one.
docstring_tokens: Add clauses to the construct if they re missing Otherwise increment their count by one .
function: def add_clause(datum, construct):
      """
      Add clauses to the construct if they're missing
      Otherwise increment their count by one.
  
      Keyword arguments:
      datum -- Data construct containing clauses to check.
      construct -- Construct to add or increment clause count.
      """
      to_check = [i['clause'] for i in construct['clauses']]
      to_add = [i['clause'] for i in datum['clauses']]
      clauses = construct["clauses"]
      for item in to_add:
          if item in to_check:
              for clause in clauses:
                  if clause["clause"] == item:
                      clause["count"] += 1
          else:
              clauses.append({"clause" : item,
                              "count" : 1})
function_tokens: def add_clause ( datum , construct ) : to_check = [ i [ 'clause' ] for i in construct [ 'clauses' ] ] to_add = [ i [ 'clause' ] for i in datum [ 'clauses' ] ] clauses = construct [ "clauses" ] for item in to_add : if item in to_check : for clause in clauses : if clause [ "clause" ] == item : clause [ "count" ] += 1 else : clauses . append ( { "clause" : item , "count" : 1 } )