Text this: Flexible risk-based portfolio optimisation