(word: str, fixword: str)
| 18 | |
| 19 | |
| 20 | def fix_case(word: str, fixword: str) -> str: |
| 21 | if word == word.capitalize(): |
| 22 | return ", ".join(w.strip().capitalize() for w in fixword.split(",")) |
| 23 | if word == word.upper(): |
| 24 | return fixword.upper() |
| 25 | # they are both lower case |
| 26 | # or we don't have any idea |
| 27 | return fixword |
no outgoing calls
no test coverage detected
searching dependent graphs…