philc/vimium — pull request #702 by smblott-github (2012-11-03 09:12:42+00:00)
Title: Improve consistency and fix bug in  relevancy calculation.

The `wordRelevancy` calculation for suggestion ordering is currently *case sensitive*. Everywhere else, matching is *case insensitive*.

This is inconsistent and probably a bug.

Example:
- Bookmark title: `Google News (GN)`.
- Query term: `gn` (lower case).
- Receives relevancy score of `0.0`.
- It only appears on the list *at all* because it happens to pass the `RankingUtils.matches()` (which is case insensitive).
- It will be ranked below any other bookmark which happens to contain `gn` in its URL (in my case, this was the ID of a Google Docs document!).
- Nevertheless, the `GN` from the title *is* highlighted in the vomnibar.

This is a particular problem for bookmarks, whose titles frequently contain capital letters.