Text this: Abstract visual reasoning based on algebraic methods