A storage medium for storing a program, executable by a computer, for extraction of a word from a sentence or document, which will be referred to collectively as a document, specified by a user, said program when executed causes said computer to perform the steps of:
- extracting a substring from a text which will be referred to as specified text, of the document specified by the user and looking up word boundary possibility information at a head or tail of a previously-prepared substring with respect to the extracted substring to calculate division probabilities at at least two character positions,
- wherein said word boundary possibility information is used to determine a likely position a compound word should be divided;
- and
- comparing the division probabilities at at least two character positions calculated in said division probability calculating step to determine a division point of a word in the specified text.