Two Contact Form 7 inquiries can look similar without belonging to the same person. A misspelled company name may deserve a closer look, while two people sharing a surname should remain separate. Text-similarity tools help retrieve candidates for review; they do not establish contact identity.

This comparison evaluates RapidFuzz, Fuse.js, fuzzball.js, pg_trgm and Apache Commons Text for a custom lead-review workflow. Official documentation and license materials were reviewed on November 7, 2026. The selection advice is an engineering assessment, with synthetic evaluation cases rather than measured speed rankings or firsthand product tests.
CF7 Analytics publishes this site. None of the tools below is presented as a native feature of CF7 or our reporting plugin. A custom adapter needs an authorized record source, a candidate-selection policy and a reviewer before similarity scores become useful.
Compare the kind of work each tool performs
A pairwise scorer compares two strings. A list-search library ranks candidates from a supplied collection. A database extension can find candidates near stored text with index support. They overlap, but moving between them changes the application architecture as well as the score.
Keep exact identifiers and reviewed identity rules ahead of fuzzy evidence. First resolve the permitted population, then compare selected text fields. Our Unicode matching guide covers representation choices; the question here is how to rank imperfect textual candidates after those choices are documented.
| Product | Runtime or location | Useful fit | License and cost boundary |
|---|---|---|---|
| RapidFuzz | Python-facing matching library | Batch candidate scoring and extraction | MIT; your runtime and maintenance |
| Fuse.js | JavaScript collection search | Ranked lookup in a permitted in-memory list | Current core Apache 2.0; optional services separate |
| fuzzball.js | JavaScript similarity library | Explicit ratio and token-based scorers | MIT; deployment and evaluation costs |
| pg_trgm | PostgreSQL extension | Indexed trigram candidate retrieval | PostgreSQL License; database operation separate |
| Apache Commons Text | Java library | Named string-distance and similarity algorithms | Apache 2.0; application infrastructure separate |
RapidFuzz
RapidFuzz provides string-scoring functions and collection-processing helpers. Its documentation includes ratios, distance algorithms and extraction methods with configurable scorers and processors. This makes it a useful option for an existing Python reconciliation job that needs to present likely textual candidates.
The strength is explicit control over scoring and preprocessing. You can choose whether punctuation, case and token order should influence a particular field. Current documentation shows that preprocessing is optional; do not assume every comparison silently normalizes the strings in the same way as another package.
The limitation is that a high text score is still text evidence. A token-set comparison may treat a subset of words as highly similar even when the extra word distinguishes two organizations. Display the original strings and retain the scorer name and processing policy with the result.
The core license is MIT, with no hosted matching subscription required by the library itself. Runtime resources and maintenance remain your responsibility. Choose RapidFuzz when Python already owns the batch or adapter and you need a deliberate scoring policy with a small reviewed candidate list.
Fuse.js
Fuse.js searches collections of objects using configured keys and can return scores with results. It is a useful shape for a JavaScript review interface where the application already holds a limited, authorized candidate list and staff need a forgiving lookup.
Its strength is relevance ranking across selected fields, including weighted keys. You can search a company label and inquiry subject while keeping exact record references visible separately. The current documentation describes lower scores as closer matches and explains the influence of location, key weight and field length.
The limitation is the collection boundary. Loading records into a browser for local search exposes that supplied data to the browser session. Filter the permitted population on the trusted side first. A hidden table row does not prevent a user from accessing a record already delivered to the client.
The current repository core uses Apache 2.0 licensing; verify the pinned release’s notices rather than relying on older descriptions. Optional hosted offerings have separate terms and availability. Choose Fuse.js for collection search in a maintained JavaScript application, while treating its relevance score as a ranking value rather than an identity probability.
fuzzball.js
fuzzball.js offers JavaScript similarity ratios, token-based comparisons and candidate extraction. Its documentation describes preprocessing options, Unicode handling and asynchronous extraction. It is relevant when a JavaScript adapter needs explicit pairwise scores instead of a complete hosted search service.
The strength is the range of comparison styles. A token-sort ratio can help explore word-order variation, while a simple ratio preserves a different notion of character similarity. Select the scorer because its behavior matches the field, and show the chosen interpretation to the reviewer.
The limitation is that defaults and build variants matter. The project documents preprocessing behavior and differences in its smaller builds. Two scripts using the same function name with different options or bundles may not provide equivalent candidate evidence. Pin the package and record the settings used.
The library uses MIT licensing. Running it locally avoids a mandatory hosted per-query fee, but does not eliminate engineering cost. Choose fuzzball.js when a JavaScript workflow benefits from its ratio and token operations and you can test the exact scorer against realistic synthetic variations.
pg_trgm
PostgreSQL’s pg_trgm extension measures similarity using trigrams and supplies operators and index support. It is useful when the candidate records already live in an authorized PostgreSQL database and you want retrieval to occur near the stored data.
The strength is database-side candidate selection. The extension documents GiST and GIN operator classes for supported searches. You can combine the candidate query with the application’s ordinary visibility constraints, then return a limited review set instead of moving the whole population into another process.
The limitation is that a trigram score answers a particular text-overlap question. It is not equivalent to every edit-distance or token score. PostgreSQL also documents different index behavior for nearest-neighbor queries: do not assume GiST and GIN are interchangeable for every query shape. Inspect the actual plan and results.
The extension comes with PostgreSQL under its permissive PostgreSQL License. Hosting, storage and database administration remain separate costs. Choose pg_trgm when PostgreSQL is already the maintained source and indexed candidate retrieval solves a defined need. Installing a database solely for one small comparison may add unnecessary operation work.
Apache Commons Text
Apache Commons Text supplies named string-distance and similarity algorithms for Java applications. Its similarity package includes Levenshtein, Jaro-Winkler, cosine and other operations. A Java adapter can choose a specific algorithm without introducing a remote matching service.
The strength is clear algorithm selection inside an established runtime. For example, a team can compare the ordering produced by a character-distance method with another method on its approved fixture. Preserve the algorithm’s actual output semantics; a distance and a normalized similarity need different sort directions and thresholds.
The limitation is that the library does not supply the entire review application. Candidate blocking, field weighting, visibility, decision storage and recovery remain application work. Select the stable release appropriate to your runtime rather than treating a development documentation banner as a release instruction.
Apache 2.0 covers the library. Runtime infrastructure, maintenance and any commercial support are separate. Choose Apache Commons Text when a Java service already owns the workflow and named algorithms provide the control required. Avoid adding a separate Java service merely to reuse an attractive similarity function.
Evaluate mistakes before selecting a cutoff
Use invented names and organizations to build a fixture with punctuation changes, accents, transposed letters, reordered words, different subsidiaries and genuinely different people with similar names. Label which records deserve review and which must remain separate. Preserve original text beside any normalized comparison value.
Run the same candidate set with documented settings. Review false positives and missed candidates, then choose the candidate limit and threshold for that field and purpose. A numerical cutoff copied from a tutorial has no demonstrated meaning for your records. Scores from these five tools are not interchangeable scales.
Keep merging outside the scoring step. A reviewer should see the source references, relevant differences and evidence before deciding. For company relationships, use the association policy guide. For a broader retrieval service, compare our inquiry search engines.
Choose the tool that fits the existing runtime
Shortlist RapidFuzz for Python scoring jobs, Fuse.js for JavaScript collection search, fuzzball.js for JavaScript ratio operations, pg_trgm for PostgreSQL candidate retrieval, and Apache Commons Text for Java algorithm control. Evaluate the mistakes each option makes on your own fixture before choosing.
If you need submission trends rather than record matching, review Svetlik Analytics for Contact Form 7, our free plugin. A similarity review is a separate workflow with its own retained data and decision responsibility. Keep that boundary clear when budgeting implementation and describing the result to colleagues.
Official sources
- RapidFuzz documentation
- RapidFuzz scorers
- RapidFuzz extraction
- RapidFuzz license
- Fuse.js documentation
- Fuse.js fuzzy search
- Fuse.js installation
- Fuse.js license
- fuzzball.js documentation
- fuzzball.js license
- PostgreSQL pg_trgm
- PostgreSQL license
- Apache Commons Text
- Commons Text similarity algorithms
- Apache license
- Official free plugin
