gpt_engineer.core.diff.is_similar

gpt_engineer.core.diff.is_similar(str1, str2, similarity_threshold=0.9) bool[source]

Compares two strings for similarity, ignoring spaces and case.

Parameters:
  • str1 (str) – The strings to compare.

  • str2 (str) – The strings to compare.

  • similarity_threshold (float) – How similar must the strings be

Returns:

True if the strings are similar, False otherwise.

Return type:

bool