Rename `similarity` to `confidence` and document it