JavaScript 2 Search Tips

Basic Search

To enter a query into JavaScript 2, just type in a few descriptive words and hit the 'enter' key, or click on the JavaScript 2 search button, for a list of relevant results. Since JavaScript 2 only returns web pages that contain all the words in your query, refining or narrowing your search is as simple as adding more words to the search terms you have already entered. Your new query will return a smaller subset of the pages.

Choosing Keywords

For best results, it's important to choose your keywords wisely. Here are some tips on how to choose keywords:

  • Use keywords likely to appear on the page with the code you want. 'Popup window' gets better results than 'popup windows' (Note the extra 's').
  • Try different variations of keyword phrases. For example, 'popup window' produces a different set of results to 'pop up window.'

Automatic 'and' Queries

By default, JavaScript 2 only returns pages that include all of your search terms. There is no need to include 'and' between terms. To restrict a search further, just include more terms.

Word Order

The order in which the keywords are entered will affect the search results. For example, the following two search queries produce a different set of results:

  • popup window
  • window popup

Phrase Searches

Search for complete phrases by enclosing them in quotation marks to refine your search results. Words enclosed in double quotes ('popup windows') will appear together in all results exactly as you have entered them.

Exclude Keywords

Sometimes what you're searching for has more than one meaning; 'cascading' can refer to 'cascading menu' or 'cascading style sheets.' You can exclude a word from your search by putting a minus sign '-' immediately in front of the term you want to avoid. For example, to find web pages about 'cascading style sheets' and not 'cascading menues' enter: 'cascading style sheets -menues.'

Full Text Search

JavaScript 2 is a full text search engine. It searches every single word on a web page, including common words and characters such as 'where' and 'how,' as well as certain single digits and single letters.


JavaScript 2 searches are NOT case sensitive. All letters, regardless of how you type them, will be understood as lower case. For example, searches for 'popup window,' 'PopUp Window,' and 'PoPuP WiNdOw' will all return the same results.

Word Variations (Stemming)

JavaScript 2 supports 'wildcard' searches. Simply insert an asterisk into the start, middle, or end of a word. The * character will match 0 to 4 non-whitespace characters. The wildcard will only be allowed in keywords which contain at least three non-asterisk characters. If there are fewer than three other characters, then the keyword will be ignored. For example, entering 'pop*' will yield 'pop,' 'popup,' and 'popups.'

Matching Approximate Plural Forms

JavaScript 2 will match the approximate English-language plural form of the word. It cannot be stressed enough that this feature is approximate. Use of this feature may introduce false positives. By the way, keyword 'Ye' will match 'ye' and 'yes,' even though 'yes' is not related to 'ye.'

The plural-form rules are very conservative and so false positives will be rare.

JavaScript 2 applies the plural-matching rules to all keywords, whether or not they are nouns. As an added benefit, the rules cause infinitive verbs to match their singular present tense forms: 'explore' will match 'explore' and 'explores.' Possessive pronouns will also match: 'its,' 'hers,' 'ours,' though pronouns are rarely useful as search terms in any form.

Overview of Rules

  • If the word ends in a vowel and then 'o,' an optional trailing 's' is supported. For example, stereo, stereos.
  • Otherwise if the word ends in 'o,' forms with a trailing 'es' or 's' will match. For example, echo, echos, echoes.
  • Otherwise if the word ends in 'is,' forms with the same base but ending in 'es' will match. For example, thesis, theses.
  • Otherwise if the word ends in a consonant followed by a 'y,' forms with the same base but ending in 'ies' will match. sky, skies
  • Otherwise if the word ends with 'y,' forms with a trailing 's' will match. For example, tray, trays.
  • Otherwise if the word ends in a hissing sound - 's,' 'z,' 'x,' 'sh,' 'ch' - then a trailing 'es' will match. For example, church, churches.
  • Finally, for all other keywords, a trailing 's' is allowed: foo, foos; bar, bars.
The Free Site!