[prev in list] [next in list] [prev in thread] [next in thread]
List: xsl-list
Subject: =?windows-1252?Q?Re=3A_=5Bxsl=5D_Does_=27Lec=9Cur=27_occur_in_=24text=3F_Do_you_have?= =?windows-125
From: Wolfgang Laun <wolfgang.laun () gmail ! com>
Date: 2013-01-19 8:06:40
Message-ID: CANaj1LcYvrE=Xg-jJRVhGxdCeaUm5qirP=uZyywY7rYYERV1zQ () mail ! gmail ! com
[Download RAW message or body]
If the "slighly misspelled" is due to writing after hearing,
something like the Soundex algorithm is one possible solution.
The algorithm depends on the speaker's language. There
are a few variants for English. Other languages might be
found on the internet.
-W
On 18/01/2013, Costello, Roger L. <costello@mitre.org> wrote:
> Hi Folks,
>
> I want to determine if 'Lec=9Cur' occurs in $text.
>
> A na=EFve solution is this XPath expression:
>
> contains($text, 'Lec=9Cur')
>
> However, that does not take into account many important factors:
>
> 1. Perhaps 'Lec=9Cur' occurs, but in $text it is in uppercase
>
> 2. Perhaps instead of the '=9C' ligature, $text uses 'oe'
>
> 3. Perhaps in $text 'Lec=9Cur' is split over two lines and thus is hyphen=
ated
>
> 4. Perhaps 'Lec=9Cur' is slightly misspelled in $text and therefore requi=
res
> fuzzy matching
>
> And there are many other important factors.
>
> Do you have an XPath solution to this problem that takes into account the
> many important factors?
>
> /Roger
>
> --~------------------------------------------------------------------
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
> To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> or e-mail: <mailto:xsl-list-unsubscribe@lists.mulberrytech.com>
> --~--
>
>
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@lists.mulberrytech.com>
--~--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic