When reading a visual novel, you can use a tool called text hooker to capture the game's text for a translation program to translate it for you.
But that doesn't always work properly. If the text hooker doesn't understand the game engine, it'll only give you gibberish. In that case, you'll need a hook code. A hook code is a code that you put in the text hooker, to help the text hooker capture the text properly.