This is awesome.
I know it's just a quick hack, but I'm curious about this in the code:
200 +(30*word.length - 7)
I've never used TypeScript, but I'm assuming this is the same as: (200 - 7) +(30*word.length)
But I guess you meant: 200 +(30*(word.length - 7))