[Snowball-discuss] Re: SnowBall German stemming

Martin Porter martin_porter@softhome.net
Thu, 14 Mar 2002 03:37:41 -0700


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