Lines Matching refs:word
527 def addWord(word, module, symbol, relevance): argument
530 if word == None or len(word) < 3:
534 if dropWords.has_key(word):
536 if ord(word[0]) > 0x80:
539 if wordsDict.has_key(word):
540 d = wordsDict[word]
544 wordsDict[word] = None
551 wordsDict[word] = {}
552 wordsDict[word][(module, symbol)] = relevance
561 for word in l:
562 if len(word) > 2:
563 ret = ret + addWord(word, module, symbol, 5)
567 def addWordHTML(word, resource, id, section, relevance): argument
570 if word == None or len(word) < 3:
574 if dropWords.has_key(word):
576 if ord(word[0]) > 0x80:
581 if wordsDictHTML.has_key(word):
582 d = wordsDictHTML[word]
584 print "skipped %s" % (word)
596 wordsDictHTML[word] = {}
597 d = wordsDictHTML[word];
607 for word in l:
608 if len(word) > 2:
610 r = addWordHTML(word, resource, id, section, relevance)
612 print "addWordHTML failed: %s %s" % (word, resource)
615 print "addWordHTML failed: %s %s %d" % (word, resource, relevance)
620 def addWordArchive(word, id, relevance): argument
623 if word == None or len(word) < 3:
627 if dropWords.has_key(word):
629 if ord(word[0]) > 0x80:
632 if wordsDictArchive.has_key(word):
633 d = wordsDictArchive[word]
635 print "skipped %s" % (word)
643 wordsDictArchive[word] = {}
644 d = wordsDictArchive[word];
654 for word in l:
655 i = len(word)
658 r = addWordArchive(word, id, relevance)
660 print "addWordArchive failed: %s %s" % (word, id)
664 print "addWordArchive failed: %s %s %d" % (word, id, relevance)
686 for word in l:
687 addWord(word, file, symbol, 10)
730 for word in l:
731 addWord(word, file, symbol, 10)
745 for word in l:
746 addWord(word, file, symbol, 10)
760 for word in l:
761 addWord(word, file, symbol, 10)
774 for word in l:
775 addWord(word, file, symbol, 10)
788 for word in l:
789 addWord(word, file, symbol, 10)
796 for word in l:
797 if len(word) > 2:
798 addWord(word, file, symbol, 5)
823 for word in l:
824 addWord(word, file, symbol, 10)
835 for word in l:
836 if len(word) > 2:
837 addWord(word, file, symbol, 5)
886 for word in l:
887 addWord(word, file, symbol, 10)
1141 for word in wordsDictArchive.keys():
1142 refs = wordsDictArchive[word]
1148 updateWordArchive(word, id, relevance)
1161 for word in wordsDictHTML.keys():
1162 refs = wordsDictHTML[word]
1168 updateWordHTML(word, resource, section, id, relevance)
1190 for word in wordsDict.keys():
1191 refs = wordsDict[word]
1196 updateWord(word, symbol, refs[(module, symbol)])