Interactive Fiction (IF) is actually a more accurate term for text adventure games, because these games can cover any topics, such as romances or comedies, not just adventures.
Text adventure games are also referred to as “interactive fiction.” The games are interactive stories, so playing a text adventure game is like being part of a book in which you affect the story. Before computers could handle graphical games, there were text adventure games.