Parsely / Parsely/wp-parsely

Smart Linking: Implement "Apply to selection" mode

Open
#2,691 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature: PCI Needs Feedback wp-parsely
Dominant language
PHP
Stars
66
Forks
36
Avg merge
2d 2h
Merged PRs (30d)
16

Description

Is your feature request related to a problem?

Currently, our Smart Linking feature checks the selected block or whole post and determines the location where links should be inserted. This is fine, but to quote @jbao:

PCI users have often complained about the lack of flexibility in selecting the anchor word length, sometimes they already have some specific word/phrase in mind that they want to add link to, or they’re not happy with the link suggestion results and want to extend/shrink the suggested anchor words. In all these cases, we can provide users with more flexibility by adding Smart Linking to the toolbar, so that they can pre-select the best anchor words of their choice, click on the smart link icon. Our API will then suggest links based on the relevance to the anchor words, and return them in a dropdown menu.

image

Describe the solution you'd like

Add a Smart Linking icon to the toolbar, which will allow Smart Linking to run for the currently selected text. We still need to determine how the whole flow/UX should be when we start working on this.

Additional context

@jbao, wanted to check with you whether we'd be ready from an API standpoint regarding this, or if API work would be needed to make this possible.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are identified in the issue. Start by clarifying the toolbar flow for pre-selected text and whether the existing API supports anchor-word suggestions; done means Smart Linking can be invoked from the toolbar for selected text and presents relevant links in a dropdown.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.