I'm trying to align a sequence of characters together, I found that sequence alignment algorithms which use dynamic programming like Needleman-Wunsch or Smith–Waterman only align one character with one character beside allowing character substitution, deletion or insertion.
For example, if I have a set of similarly sounding characters, like
monir, monier, muneer, munir, mounir, mouneer
The alignment algorithm will produce the following output
m u n i - r
| | | | |
m o n e e r
Is there a way to adapt these algorithms (or an alternative algorithm) to consider aligning/substituting character with more than one character in order to output something like
m u n i r
| | | | |
m o n ee r
Please note that, I don't have a predefined list of similarly sounding characters, so I'm trying to aligning the similar words together in order to extract these alignments.