Electronic dictionary and method of codifying words therefor
First Claim
1. A method of using an electronic dictionary, said method comprising the steps of(a) preliminarily defining letter weight numbers individually corresponding to alphanumeric symbols and position weight numbers individually corresponding to letter positions in any word,(b) obtaining a word-representing hash value for each of given words to be stored by sequentially calculating letter-representing hash values of individual letters of said each given word from both the letter and position weight numbers respectively corresponding to said individual letters and a predefined divisor and by adding said sequentially calculated letter-representing hash values,(c) arranging said obtained word-representing hash values sequentially in numerical order separately for even-letter words and odd-letter words,(d) dividing each of said word-representing hash values into an index section represented by high digits thereof and a data section represented by lower digits thereof,(e) forming groups of said word-representing hash values according to said index sections separately for even-letter words and odd-letter words,(f) storing numbers of said word-representing hash values in said groups,(g) calculating and storing addresses of the first word-representing hash values in said groups.
1 Assignment
0 Petitions
Accused Products
Abstract
Even-letter and odd-letter words are separately stored in an electronic dictionary and are codified by using predefined letter weight numbers and position weight numbers corresponding to different letters and letter positions within a word to calculate their hash values. These hash values are arranged sequentially in numerical order and divided into groups according to a predetermined number of higher digits. Numbers of hash values in these groups and the addresses of the first hash values in them are stored. When a letter array is inputted for spell-check, it is codified by the same formula and a corresponding group is identified from its high digits. A sequential comparison is made only with the hash values belonging to this selected group and until the stored hash value in the selected group exceeds the codified number.
19 Citations
7 Claims
-
1. A method of using an electronic dictionary, said method comprising the steps of
(a) preliminarily defining letter weight numbers individually corresponding to alphanumeric symbols and position weight numbers individually corresponding to letter positions in any word, (b) obtaining a word-representing hash value for each of given words to be stored by sequentially calculating letter-representing hash values of individual letters of said each given word from both the letter and position weight numbers respectively corresponding to said individual letters and a predefined divisor and by adding said sequentially calculated letter-representing hash values, (c) arranging said obtained word-representing hash values sequentially in numerical order separately for even-letter words and odd-letter words, (d) dividing each of said word-representing hash values into an index section represented by high digits thereof and a data section represented by lower digits thereof, (e) forming groups of said word-representing hash values according to said index sections separately for even-letter words and odd-letter words, (f) storing numbers of said word-representing hash values in said groups, (g) calculating and storing addresses of the first word-representing hash values in said groups.
-
7. A word processing system comprising
an electronic dictionary which stores word-representing hash values each corresponding to a word, said electronic dictionary having an even-letter part storing those of said word-representing hash values representing even-letter words and an odd-letter part storing those of said word-representing hash values representing odd-letter words, said word-representing hash values being arranged in numerical order and divided into groups in each of said even-letter and odd-letter parts, first addresses of said word-representing hash values in said groups being stored, input means for receiving a letter array and determining the number of letters in said letter array, a letter weight table storing preliminarily defined letter weight numbers individually corresponding to alphanumeric symbols, a position weight table storing preliminarily defined position weight numbers individually corresponding to letter positions in any word, retrieving means for sequentially retrieving from said letter and position weight tables one each of said letter and position weight numbers corresponding to each of the letters of said letter array, calculating means for calculating letter-representing hash values for the letters of said letter array from said letter and position weight numbers retrieved by said retrieving means and by a division by a predefined divisor, hash-value calculating means for calculating an array-representing hash value corresponding to said letter array by adding said letter-representing hash values obtained by said calculating means, and control means for selecting one of said groups stored in said electronic dictionary from high digits of said array-representing hash value and determining whether said array-representing hash value coincides with any of said word-presenting hash values in said selected one of said groups in said electronic dictionary.
Specification