Text this: Algebraic models for accounting systems