[Snowball-discuss] Re: SnowBall German stemming

From: Martin Porter (martin_porter@softhome.net)
Date: Thu Mar 14 2002 - 10:37:41 GMT


Dear Marcus

(Please remember to post to Snowball discuss)

Now, for some reason you altered my

  define postlude as repeat (

      [substring] among(
'Y' (<- 'y')
'U' (<- 'u')
'{a"}' (<- 'a')
'{o"}' (<- 'o')
'{u"}' (<- 'u')
'' (next)
      ) //or next

  )

to

  define postlude as repeat (

      [substring] among(
'Y' (<- 'y')
'U' (<- 'u')
'{a"}' (<- 'a')
'{o"}' (<- 'o')
'{u"}' (<- 'u')
      ) or next

  )

- this does not work because it is equivalent to

  repeat (
           [substring]
           among(..) or next
         )

whereas what you need is

  repeat (
           ( [substring] among(..) )
           or next
         )

If you put in those extra brackets it works.

I'll take out the commented '//or next' which is confusing.

Oh dear - perhaps Snowball scripts are not as easy to write as I imagined ...

Martin

_______________________________________________
Snowball-discuss mailing list
Snowball-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/snowball-discuss



This archive was generated by hypermail 2.1.3 : Thu Sep 20 2007 - 12:02:41 BST