@gmickel/gno 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/vendor/fts5-snowball/LICENSE +67 -0
- package/vendor/fts5-snowball/README.md +38 -0
- package/vendor/fts5-snowball/darwin-arm64/fts5stemmer.dylib +0 -0
- package/vendor/fts5-snowball/darwin-x64/fts5stemmer.dylib +0 -0
- package/vendor/fts5-snowball/linux-x64/fts5stemmer.so +0 -0
- package/vendor/fts5-snowball/windows-x64/fts5stemmer.dll +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gmickel/gno",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Local semantic search for your documents. Index Markdown, PDF, and Office files with hybrid BM25 + vector search.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"search",
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"src",
|
|
32
|
-
"assets"
|
|
32
|
+
"assets",
|
|
33
|
+
"vendor"
|
|
33
34
|
],
|
|
34
35
|
"engines": {
|
|
35
36
|
"bun": ">=1.0.0"
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
fts5-snowball - Snowball tokenizer for SQLite FTS5
|
|
2
|
+
==================================================
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2016 Abilio Marques
|
|
5
|
+
https://github.com/abiliojr/fts5-snowball
|
|
6
|
+
|
|
7
|
+
BSD 3-Clause License
|
|
8
|
+
|
|
9
|
+
Redistribution and use in source and binary forms, with or without
|
|
10
|
+
modification, are permitted provided that the following conditions are met:
|
|
11
|
+
|
|
12
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
13
|
+
list of conditions and the following disclaimer.
|
|
14
|
+
|
|
15
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
16
|
+
this list of conditions and the following disclaimer in the documentation
|
|
17
|
+
and/or other materials provided with the distribution.
|
|
18
|
+
|
|
19
|
+
3. Neither the name of the copyright holder nor the names of its contributors
|
|
20
|
+
may be used to endorse or promote products derived from this software
|
|
21
|
+
without specific prior written permission.
|
|
22
|
+
|
|
23
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
24
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
25
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
26
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
27
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
28
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
29
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
30
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
31
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
32
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
+
|
|
34
|
+
================================================================================
|
|
35
|
+
|
|
36
|
+
Snowball Stemmer Library
|
|
37
|
+
========================
|
|
38
|
+
|
|
39
|
+
Copyright (c) 2001-2025, Dr Martin Porter and Richard Boulton
|
|
40
|
+
https://github.com/snowballstem/snowball
|
|
41
|
+
|
|
42
|
+
BSD 3-Clause License
|
|
43
|
+
|
|
44
|
+
Redistribution and use in source and binary forms, with or without
|
|
45
|
+
modification, are permitted provided that the following conditions are met:
|
|
46
|
+
|
|
47
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
48
|
+
list of conditions and the following disclaimer.
|
|
49
|
+
|
|
50
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
51
|
+
this list of conditions and the following disclaimer in the documentation
|
|
52
|
+
and/or other materials provided with the distribution.
|
|
53
|
+
|
|
54
|
+
3. Neither the name of the Snowball project nor the names of its contributors
|
|
55
|
+
may be used to endorse or promote products derived from this software
|
|
56
|
+
without specific prior written permission.
|
|
57
|
+
|
|
58
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
59
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
60
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
61
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
62
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
63
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
64
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
65
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
66
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
67
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# fts5-snowball Vendored Binaries
|
|
2
|
+
|
|
3
|
+
Prebuilt [fts5-snowball](https://github.com/abiliojr/fts5-snowball) SQLite extension for multilingual FTS5 stemming.
|
|
4
|
+
|
|
5
|
+
## Supported Platforms
|
|
6
|
+
|
|
7
|
+
| Platform | File | Architecture |
|
|
8
|
+
|----------|------|--------------|
|
|
9
|
+
| Linux | `linux-x64/fts5stemmer.so` | x86_64 |
|
|
10
|
+
| macOS | `darwin-arm64/fts5stemmer.dylib` | ARM64 (Apple Silicon) |
|
|
11
|
+
| macOS | `darwin-x64/fts5stemmer.dylib` | x86_64 (Intel) |
|
|
12
|
+
| Windows | `windows-x64/fts5stemmer.dll` | x86_64 |
|
|
13
|
+
|
|
14
|
+
## Build Provenance
|
|
15
|
+
|
|
16
|
+
Built via GitHub Actions: `.github/workflows/build-fts5-snowball.yml`
|
|
17
|
+
|
|
18
|
+
Source: https://github.com/abiliojr/fts5-snowball (commit from main branch)
|
|
19
|
+
|
|
20
|
+
## Supported Languages
|
|
21
|
+
|
|
22
|
+
The Snowball stemmer supports: Arabic, Basque, Catalan, Danish, Dutch, English, Finnish, French, German, Greek, Hindi, Hungarian, Indonesian, Irish, Italian, Lithuanian, Nepali, Norwegian, Porter, Portuguese, Romanian, Russian, Serbian, Spanish, Swedish, Tamil, Turkish, Yiddish.
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import { Database } from 'bun:sqlite';
|
|
28
|
+
|
|
29
|
+
// Load extension
|
|
30
|
+
db.loadExtension('vendor/fts5-snowball/darwin-arm64/fts5stemmer.dylib');
|
|
31
|
+
|
|
32
|
+
// Create FTS table with snowball tokenizer
|
|
33
|
+
db.exec(`CREATE VIRTUAL TABLE docs USING fts5(content, tokenize='snowball english')`);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## License
|
|
37
|
+
|
|
38
|
+
BSD-3-Clause. See LICENSE file.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|