To provide a document processor of excellent operability.
If a touch input is detected with a touch panel inputting means 1, a position calculating means 2 calculates the position of the touch input on a screen as touch position data. A discrimination executing means 3, on the basis of the touch position data, discriminates predetermined processing. For instance, when the document processor is in a correction mode, and if kana-kanji candidates for a word in the position of a word cursor on a display screen are further displayed as a candidate matrix, only by the position of the touch input on the screen, whether the processing for moving the word cursor or the processing for selecting from kana-kanji candidates is to be executed can be discriminated.