Uploaded image for project: 'Lucene.Net'
  1. Lucene.Net
  2. LUCENENET-475

DanishStemmer doesn't work.

    XMLWordPrintableJSON

    Details

      Description

      The following code fails with a ArgumentOutOfRangeException in line 467 of "\src\contrib\Snowball\SF\Snowball\SnowballProgram.cs":

      var stemmer = new DanishStemmer();
      stemmer.SetCurrent("heste");
      stemmer.Stem();
      Console.WriteLine(stemmer.GetCurrent());

      Expected: Output "hest" to console.

      Possible fix: Seems like the line should have been

      s.Append(current.ToString(bra, len));

      instead of:

      s.Append(current.ToString(bra, ket));

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                johannesh Johannes Hansen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: