Text this: On the construction of artificial general intelligence based on the correspondence between goals and means