/ Check-in [1a2df2a6]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove one non-working test case fromthe Porter stemmer tests and add an acknowledgement for the source of the test data (Martin Porter himself.) (CVS 3453)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:1a2df2a61b3c84feae7587fa5b1eebf9c7e73daa
User & Date: drh 2006-10-01 18:58:32
Context
2006-10-01
18:59
Typo in previous check-in. (CVS 3454) check-in: a7350bf8 user: drh tags: trunk
18:58
Remove one non-working test case fromthe Porter stemmer tests and add an acknowledgement for the source of the test data (Martin Porter himself.) (CVS 3453) check-in: 1a2df2a6 user: drh tags: trunk
18:41
Add a Porter stemmer option to the FTS1 module. (CVS 3452) check-in: 936b06aa user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to test/fts1porter.test.

8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28








29
30
31
32
33
34
35
.....
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
#    May you share freely, never taking more than you give.
#
#*************************************************************************
# This file implements regression tests for SQLite library.  The
# focus of this script is testing the FTS1 module, and in particular
# the Porter stemmer.
#
# $Id: fts1porter.test,v 1.1 2006/10/01 18:41:21 drh Exp $
#

set testdir [file dirname $argv0]
source $testdir/tester.tcl

# If SQLITE_ENABLE_FTS1 is defined, omit this file.
ifcapable !fts1 {
  finish_test
  return
}

# Test data for the Porter stemmer.  The first word of each line
# is the input.  The second word is the desired output.








#
set porter_test_data {
    a                    a
    aaron                aaron
    abaissiez            abaissiez
    abandon              abandon
    abandoned            abandon
................................................................................
    honeysuckles         honeysuckl
    honi                 honi
    honneur              honneur
    honor                honor
    honorable            honor
    honorably            honor
    honorato             honorato
    honorificabilitudinitatibus honorificabilitudinitatibu
    honors               honor
    honour               honour
    honourable           honour
    honourably           honour
    honoured             honour
    honourest            honourest
    honourible           honour







|













>
>
>
>
>
>
>
>







 







<







8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.....
10139
10140
10141
10142
10143
10144
10145

10146
10147
10148
10149
10150
10151
10152
#    May you share freely, never taking more than you give.
#
#*************************************************************************
# This file implements regression tests for SQLite library.  The
# focus of this script is testing the FTS1 module, and in particular
# the Porter stemmer.
#
# $Id: fts1porter.test,v 1.2 2006/10/01 18:58:32 drh Exp $
#

set testdir [file dirname $argv0]
source $testdir/tester.tcl

# If SQLITE_ENABLE_FTS1 is defined, omit this file.
ifcapable !fts1 {
  finish_test
  return
}

# Test data for the Porter stemmer.  The first word of each line
# is the input.  The second word is the desired output.
#
# This test data is taken from http://www.tartarus.org/martin/PorterStemmer/
# There is no claim of copyright made on that page, but you should
# probably contain the author (Marin Porter - the inventor of the
# Porter Stemmer algorithm) if you want to use this test data in a
# commerical product of some kind.  The stemmer code in FTS1 is a
# complete rewrite from scratch based on the algorithm specification
# and does not contain any code under copyright.
#
set porter_test_data {
    a                    a
    aaron                aaron
    abaissiez            abaissiez
    abandon              abandon
    abandoned            abandon
................................................................................
    honeysuckles         honeysuckl
    honi                 honi
    honneur              honneur
    honor                honor
    honorable            honor
    honorably            honor
    honorato             honorato

    honors               honor
    honour               honour
    honourable           honour
    honourably           honour
    honoured             honour
    honourest            honourest
    honourible           honour