[Pmwiki-users] Accidental wikiwords (was: AsSpaced function)

John Rankin john.rankin
Thu Oct 7 16:37:39 CDT 2004


On Tuesday, 5 October 2004 8:11 PM, chr at home.se wrote:
>On 5 Oct 2004, John Rankin wrote:
>
>> >It is probably worth a cookbook entry, but note that there is also 
>> >likely to be a generalized shortcut for excluding patterns and performing 
>> >WikiWordCounts based on patterns (in addition to individual
>> >words).

One solution might be to use a wikiword pattern that requires
words to start with an upper case letter, have at least 2 upper
case letters and at least 2 lower case letters or digits.

This would be configurable, not the standard behaviour.

It prevents acronym plurals and things like PhD from being treated 
as wiki words. It wouldn't fix every problem but for some sites it 
might be a reasonable and simple fix.

Something like (removing most brackets for clarity):

  [upper][alnum]*[lower0-9][alnum]*([upper][lower0-9]|[lower0-9][upper])[alnum]*

Just a thought.
-- 
JR
--
John Rankin





More information about the pmwiki-users mailing list