9. A computer-readable storage medium that stores a document type identifying program for identifying a document type of a document having word information on word strings and ruled line information on ruled lines written thereon, the document type identifying program causing a computer to execute a process comprising: receiving inputs regarding the word information on the word strings and the ruled line information on the ruled lines written on the document; storing a plurality of keywords used as keys that identify document types in a storage unit in association with each document type; generating, for each keyword, a plurality of word-sets, which are new combinations of a plurality of words obtained by decomposing keywords consisted of a plurality of words into each word composing the keywords and further extracting a plurality of words from the each word, to be checked for matching with the word strings written on the document by using the keywords stored in the storage unit at the storing; generating, based on the received inputs regarding the word information and the ruled line information at the receiving, grouped word strings by grouping the words written on the document and overlapping each other in terms of height when seen from a lateral direction, and aligning each of the generated grouped word strings; checking matching of each of the grouped word strings aligned at the aligning with each of the word-sets generated at the generating, obtaining, for each of the keywords, number of matched words with a highest matching rate between each of the grouped word strings and each of the word-sets, and calculating an evaluation value for each document type by using each of the obtained number of matched words, each evaluation value evaluating a possibility of each document type to be the type of the document; and determining, based on each evaluation value calculated for each document type at the calculating, the document type of the document having the word information and the ruled line information written thereon.
13. The computer-readable storage medium according to claim 9 , wherein the generating the grouped word strings includes, when a ruled line is found in any of the grouped word strings based on the word information and the ruled line information, dividing the grouped word string at the ruled line.