Could Alinks match on beginning of word?

hawkdrupal - August 7, 2007 - 16:24
Project:Alinks
Version:5.x-1.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Many words have the same root, but different endings, such as: work, working, worker, workplace, etc. Another example is singular vs. plural: computer, computers, etc. But in such cases, an Alink really should match any of them, and point to the same link.

It would be terrific if Alinks could match "work" to work, working, worder, and match "computer" to computer, computers, etc.

This would greatly reduce the need to add many terms to Alinks. Maybe this could be optional via a checkbox, to match the specified term when it is the beginning of a longer word.

If this is implemented, the actual Alink should be positioned based on spaces that separate words, so that it doesn't put the link/icon in before the "s" of a plural, or before "'s" of a possessive, for instance.

#1

midkemia - August 7, 2007 - 18:07

Alinks by design replaces whole words only, this is mentioned in some of the other issues.

Allowing Alinks to link to the begining of a word could be disaterous. Even if it is selectable, as unless you know for 100% that you have considered all words that could begin with your string, you could end up linking things you really dont want linked and not know it

#2

tic2000 - August 8, 2007 - 06:27

Yes it could, but for the reasons that midkemia explained it won't.

#3

hawkdrupal - August 8, 2007 - 15:49

Thanks for responding. I understand there's a potential downside to linking to partial text. I'm sure at some point it becomes too "heavy" to be practical at display-time, but maybe some flexibilty is possible.

For instance, (I think already requested), could the Alink config "link on this" field allow multiple similar terms that would all be given the link?

Or, if that's not feasible, provide a button to clone/copy an existing Alink item to make it faster to add variations of a term?

Plan C might be to also support a way to tag a term that Alink could discover; the tag would include an ID, ideally the "root" term that should be matched. Somewhat like how Media Wiki works.

FYI, our current workaround is to have content writers/editors strive to put an exact Alink term somewhere early in the content. But this is often not possible or desirable.

Alink is cool!

 
 

Drupal is a registered trademark of Dries Buytaert.