On Fri, Jul 18, 2003 at 09:51:30PM +0200, Lars Aronsson wrote:
SUMMARY IN ENGLISH:
The German language has a problem with making wiki links from phrases where word endings need to change to make the link text fit in a sentence, something like "calf -> calves", but on a much greater scale. For example an article heading might be "Heiliges R?misches Reich Deutscher Nation" (the Holy Roman Empire of German Nationality) but a in typical phrase where you in English can simply write
This was a typical property of the [[Holy Roman Empire of ...]]
where the article heading appears unmodified as the link text. But the German text would have to be:
Das war ein typisches Eigenschaft des [[Heiliges R?misches Reich Deutscher Nation | Heiligen R?mischen Reiches Deutscher Nation]] ^^ ^^ ^^
In German, these different word endings are never (?) longer than the last two characters of a word, which made me suggest the following algorithm, from which I think the Swedish and Danish Wikipedia could also benefit:
When a bracket link doesn't have a direct match,
And the bracket link consists of three words or more,
Why three? Why not apply this to the [[Englischer Kanal]], too?
- Replace with ".*" or SQL "%" the last two characters of each word
in the link text.
- If this search pattern matches exactly *one* article heading,
make a link directly to that article.
4. If the edit-link is hit, automatically propose to create a #REDIRECT to the already existing page.
mod_speling from apache automatically fixes spelling errors, and sometimes does not exactly what one might have expected. So I would prefer to have a human judge whether [[Haus der B�rse]] and [[Hausse der B�rse]] are really articles covering the same topic.
Regards,
JeLuF