in augly/text/augmenters/bidirectional.py [0:0]
def augment(self, texts: Union[str, List[str]]) -> List[str]:
texts = texts if isinstance(texts, list) else [texts]
if self.granularity == "all":
return [self.rtl_flip(text, False) for text in texts]
# otherwise, self.granularity == "word"
return [self.rtl_flip_per_word(text) for text in texts]