A keyword extracting device according to a thirty-fifth aspect of the present invention is characterized by a plurality of pattern storage means corresponding to a type and field of a text, a kind of a stored pattern and the like, and pattern integrating means for expanding selection, concatenation, repetition and the like in a pattern if necessary, and for integrating and outputting, for each kin