Bryan Housel
4244de00f3
Update dependencies, move some projects from ideditor -> rapideditor
2023-03-13 10:28:56 -04:00
Bryan Housel
82b4751e6c
Remove all code related to managing the *:wikipedia tags
...
(re: #6481 )
2022-04-21 12:59:18 -04:00
Bryan Housel
85015fe18b
Use import assertions syntax for importing JSON files
...
(closes #6014 )
2022-02-16 11:40:10 -05:00
Bryan Housel
b95cdf2b5a
Standardize canadian geojsons to be like us geojsons
...
features/ca/ontario.geojson -> features/ca/ca-on.geojson
features/ca/quebec.geojson -> features/ca/ca-qc.geojson
2021-11-10 11:33:17 -05:00
Bryan Housel
3fb4352f63
Add tests for categories in multiple trees
...
(re: #5625 )
2021-11-01 15:09:30 -04:00
Bryan Housel
576dcb42d1
import the json files in the matcher test
2021-06-24 15:44:25 -04:00
Bryan Housel
e2bfcf3913
Make the Matcher a class
...
This makes using it a bit more idiomatic: `const matcher = new Matcher();`
2021-06-22 16:56:21 -04:00
Bryan Housel
8c7037eede
Swap jest for node-tap
...
node-tap is much simpler, and jest's babel transformer was messing stuff up
2021-06-22 10:27:24 -04:00
Bryan Housel
1c4fc70e3b
WIP Modernize
...
- switch to type: module
- replace all CJS require/module.exports with ES6 import/expor
2021-06-22 00:04:52 -04:00
Bryan Housel
d2ad70733b
Upgrade to location-conflation v1.0.1
...
(closes #5124 )
Note: The ergonomics of how we "require" defualt export from the CJS package is
_weird_ and different from what rollup previously built for us. That's ok.
(This is https://github.com/evanw/esbuild/issues/1182 )
This will be less weird when I switch this project over to ESM and we
instead "import" the ESM package of location-conflation.
2021-06-18 14:55:28 -04:00
Bryan Housel
f760ac5721
Matcher should not throw on unrecognized locationSets
...
(closes #5122 )
2021-06-14 15:52:52 -04:00
Bryan Housel
43e50b725d
Drop entire general and supplemental unicode punctuation blocks
...
U+2000-U206F is the General Punctuation block (en/em dashes are here)
U+2E00-U2E7F is the Supplemental Punctuation block
(closes #5117 )
2021-06-07 19:43:19 -04:00
Bryan Housel
cccc32bc16
Have the matcher handle generic/common words too
...
(closes #4924 )
2021-02-26 11:18:23 -05:00
Bryan Housel
e45119b90c
Fix test data file to match new format
2021-02-18 00:41:10 -05:00
Bryan Housel
c05dd74a25
Matcher refactor, many improvements
...
- Separate caches for primary/alternate names
- This lets us perform a single indexing pass and return more relevant name matches
- Add primary/alternate name tag patterns to trees.json
- match() returns a result object that sorts primary before alternate
- More speed improvements
- More tests
2021-01-15 12:01:12 -05:00
Bryan Housel
8a40582d47
Add a test for flag matching, fix bug in buildLocationIndex
2021-01-01 09:35:07 -05:00
Bryan Housel
1e8d2ddb49
Adjust matcher result sort order
...
- by area descending, if no location specified
- by area ascending, if location specified
2020-12-31 12:09:08 -05:00
Bryan Housel
e27e2ae232
Add tweaks to the matcher code, add more tests
...
(re: #4788 )
2020-12-28 16:42:48 -05:00
Bryan Housel
a5f486971e
Add tests for the matcher
...
(re: #4788 )
2020-12-24 11:04:27 -05:00
Bryan Housel
a1db1efa59
Ensure that simplify/stemmer can deal with non-string input
2020-12-23 11:16:42 -05:00
Bryan Housel
b8fec04ce6
Add tests for the stemmer (I don't know if it's used anymore)
...
(re: #4788 )
2020-12-23 11:08:52 -05:00
Bryan Housel
6aabe685e5
Add jest for testing, create test for simplify
...
Also remove the validate.js file, since validation happens on index build
(re #4788 )
2020-12-23 10:18:45 -05:00