Lines Matching defs:words
186 static Word words[MAX_WORD_COUNT];
370 * (with no noise in between), then add the pair of words, too
496 /* sort the words in reverse order by weight */
497 uprv_sortArray(words, wordCount, sizeof(Word),
500 /* remove the words that do not save anything */
501 while(wordCount>0 && words[wordCount-1].weight<1) {
525 (int)i, (long)words[wordNumber].weight,
526 words[wordNumber].length, words[wordNumber].s);
540 words[i].weight-=words[i].count;
543 /* sort these words in reverse order by weight */
545 uprv_sortArray(words+tokenCount, wordCount-tokenCount, sizeof(Word),
548 /* remove the words that do not save anything */
549 while(wordCount>0 && words[wordCount-1].weight<1) {
579 (long)words[0].weight,
580 words[0].length, words[0].s);
596 (int)i, (long)words[wordNumber].weight,
597 words[wordNumber].length, words[wordNumber].s);
611 (int)i, (long)words[wordNumber].weight,
612 words[wordNumber].length, words[wordNumber].s);
758 printf("number of words in the dictionary from these names: %lu\n",
788 tokens[i]=(int16_t)(addToken(words[token].s, words[token].length)-groupTop);
923 if(token>=0 && length==words[token].length && 0==uprv_memcmp(s, words[token].s, length)) {
936 if(length==words[i].length && 0==uprv_memcmp(s, words[i].s, length)) {
937 return words+i;
950 fprintf(stderr, "gennames: too many words\n");
957 word=words+wordCount;