What do you mean by text adventure? Something like "IF"?
I mean like something like Zork or even Adventure (Those originals)
Then it's IF. I was asking because I recall some editors for IF style text adventures (like define a room, item, make some connection between them, etc). You could try to find one, maybe it will give you some technical ideas.
Text adventures generally run along those lines - Define a room, whats in it and the various exits you can see and what things you can interact with