Text this: Modern portfolio optimisation under regime switching