1. A Computer implemented method for ranking documents being searched in a database by a word query according to text relevancy comprising the steps of: (a) inputting a word query to a computer database of documents; (b) selecting each document by the word query; (c) determining a real value number for each document, comprising the steps of: (i) calculating a first importance value for each word in the selected document; (ii) calculating a second importance value for each word in the query that matches a word in the document; (iii) determining a probability value for each word in the query matching a semantic category; (iv) determining a probability value for each word in the document matching a semantic category; (v) adjusting for each word in .the query that does not exist in the database of the document; (vi) repeating steps (i) to (iv) for each adjusted word; (vii) calculating weights of a semantic component in the query based on the importance value, the probability value and frequency of the word in the document; (viii) calculating weights of a semantic component in the document based on the importance value, the probability value and frequency of word in the query; (ix) multiplying query component weights by document component weights into products; and (x) adding the products together to represent the real-value number for the selected document; and (d) repeating step (c) for each additional document selected by the query; and (e) sorting the documents of the database according to their respective real value numbers.