(self, data)
| 69 | return text.strip() |
| 70 | |
| 71 | def word_level (self, data): |
| 72 | head = '' |
| 73 | collins = data.get('collins', '') |
| 74 | if isinstance(collins, str) or isinstance(collins, unicode): |
| 75 | if collins in ('', '0'): |
| 76 | collins = None |
| 77 | if collins: |
| 78 | head = str(collins) |
| 79 | if data.get('oxford'): |
| 80 | head = 'K' + head |
| 81 | return head.strip() |
| 82 | |
| 83 | def word_exchange (self, data, style): |
| 84 | if not data: |
no test coverage detected