missing tests for text transform.py and would like to contribute.
replace_all_caps and deal_capswork not as expected – return a list, not a string.
Please advise if I understand the desired behavior correctly: replace_all_caps('All CAPS WORDS to Replace') == 'All xxup caps xxup words to Replace'
and deal_caps('Replace Capitals in Begining of WORDS Only') == 'xxmaj replace xxmaj capitals in xxmaj begining of WORDS xxmaj only'
They do take a Collection[str] since they are applied after the tokenization is done (post rules vs pre rules) so they get a list of tokens.
You have the behavior correct, additionally one of them is going to lower case everything (the second one applied but I can’t remember which one it is).