Parser-based interactive fiction
From IFWiki
Parser-based interactive fiction is a kind of interactive fiction in which the player types instructions, and the game's parser analyzes the instructions to determine what happens next. Typically, the player types commands like "Pull lever" or "Unlock the door with the golden key." A parser-based game is sometimes called a text adventure.
A parser game usually has an underlying world model that allows the player character to move from one location to another, examine scenery, and interact with objects.
Authoring systems for creating parser IF include Inform 7, TADS, Adventuron, and Dialog, among others. More authoring systems for parser games are listed at Authoring systems for parser-based IF.