Text this: Magnetism and structure in functional materials