Text this: A mathematical approach to financial allocation strategies