Text this: Optimal resource allocation and budgeting in libraries