Text this: The logical foundations of cognition