Make a jazz noise here
()
| 21 | |
| 22 | # -------------------------------------------------- |
| 23 | def main(): |
| 24 | """Make a jazz noise here""" |
| 25 | |
| 26 | args = get_args() |
| 27 | prefixes = list('bcdfghjklmnpqrstvwxyz') + ( |
| 28 | 'bl br ch cl cr dr fl fr gl gr pl pr sc ' |
| 29 | 'sh sk sl sm sn sp st sw th tr tw thw wh wr ' |
| 30 | 'sch scr shr sph spl spr squ str thr').split() |
| 31 | |
| 32 | start, rest = stemmer(args.word) |
| 33 | if rest: |
| 34 | print('\n'.join(sorted([p + rest for p in prefixes if p != start]))) |
| 35 | else: |
| 36 | print(f'Cannot rhyme "{args.word}"') |
| 37 | |
| 38 | |
| 39 | # -------------------------------------------------- |
no test coverage detected