I noticed this statement in the comments.
For example, the input "SOS" would return a value of [1, 1, 1, 1, 1, 3, 3, 1, 3, 1, 3, 3, 1, 1, 1, 1, 1 ]
Because Morse code can be tedious, several abbreviations--or prosigns--were commonly adopted and are still in use today. Using the SOS example, operators would omit the letter spacing.