refactor capitalization and regex config (#1)
Just noticed they are actually the same kind of thing, so create a dotdict to handle their config