diff --git a/src/helm/proxy/clients/mechanical_turk_utils.py b/src/helm/proxy/clients/mechanical_turk_utils.py index b62a49d41e..e2432db109 100644 --- a/src/helm/proxy/clients/mechanical_turk_utils.py +++ b/src/helm/proxy/clients/mechanical_turk_utils.py @@ -8,13 +8,13 @@ def replace_emoji_characters(s: str) -> str: """Replace 4-byte characters with HTML spans with bytes as JSON array - This function takes a Unicode string containing 4-byte Unicode + This function takes a Unicode string that may contain 4-byte Unicode characters, e.g. "hi😀😀", and replaces each 4-byte character with an HTML span with the 4 bytes encoded as a HTML entity, e.g. "hi😀😀" Args: - s (Unicode string): String that main contain emojis e.g. "hi😀😀" + s (Unicode string): String that may contain emojis e.g. "hi😀😀" Returns: Unicode string with all 4-byte Unicode characters in the source string replaced with HTML entities e.g. "hi😀😀"