Skip to content

Commit

Permalink
Update fetchLinkSuggestions to sort results by relevancy (WordPress#6…
Browse files Browse the repository at this point in the history
…2397)

* Update fetchLinkSuggestions to sort results by relevancy

- Rename __experimentalFetchLinkSuggestions to fetchLinkSuggestions.
- Rewrite fetchLinkSuggestions in TypeScript.
- Sort results by relevancy using cosine similiarty between term frequency vectors.

* Fix tsc errors

* Update @wordpress/core-data imports

* Make tokenize unicode aware

* Remove unnecessary mutation

* Add tests for all the helper functions

* Simpler scoring function

* Keep experimental for now

Unlinked contributors: scrobbleme.

Co-authored-by: noisysocks <[email protected]>
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: ntsekouras <[email protected]>
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: andrewserong <[email protected]>
Co-authored-by: skorasaurus <[email protected]>
  • Loading branch information
7 people authored and patil-vipul committed Jun 17, 2024
1 parent 018022a commit c7d3c02
Show file tree
Hide file tree
Showing 3 changed files with 391 additions and 238 deletions.
237 changes: 0 additions & 237 deletions packages/core-data/src/fetch/__experimental-fetch-link-suggestions.js

This file was deleted.

Loading

0 comments on commit c7d3c02

Please sign in to comment.