Martin Fischer
8d026ac23e
feat(dict): Preserve correction order
...
We want to be able to recommend more likely corrections first,
e.g. for "poped" we want to recommend "popped" before "pooped".
2023-06-26 22:13:47 +02:00
Ed Page
357aa55c6c
Merge pull request #764 from not-my-profile/refactor-generate
...
Refactor generate and add tests
2023-06-26 14:15:20 -05:00
Martin Fischer
89d5a97a8a
test: Add some tests for dict processing logic
2023-06-26 19:23:27 +02:00
Martin Fischer
49a0eaab7b
refactor: Make dict processing logic testable
...
Previously all the dictionary cleanup logic was in the function:
fn generate<W: std::io::Write>(file: &mut W, dict: &[u8])
which parsed the provided buffer as CSV and also took care of writing
the processed dictionary back as CSV. This commit factors out the CSV
handling, leaving a `process` function behind so that it can be easily
tested in the following commit.
2023-06-26 19:22:04 +02:00
Ed Page
2fffb1bb2b
chore: Release
2023-06-26 09:05:53 -05:00
Ed Page
601970fb32
docs: Update changelog
2023-06-26 09:05:38 -05:00
Ed Page
2b0c688117
Merge pull request #770 from epage/zar
...
fix(dict): Dont correct currency code
2023-06-26 09:03:49 -05:00
Ed Page
37d4d626b6
fix(dict): Dont correct currency code
...
Fixes #767
2023-06-26 08:48:57 -05:00
Ed Page
7a652694ec
docs: Update comparison table
2023-06-22 15:09:53 -05:00
Ed Page
d9e1ae0a39
chore: Release
2023-06-22 12:33:50 -05:00
Ed Page
f9568f20db
docs: Update changelog
2023-06-22 12:33:35 -05:00
Ed Page
2868856df4
Merge pull request #762 from epage/config
...
fix(config): Force-skip config files
2023-06-22 12:33:02 -05:00
Ed Page
5f1d3c23bc
fix(config): Force-skip config files
...
This doesn't use `extend-exclude` which means that `typos typos.toml`
will stil be skipped
This doesn't just skip the currently loaded config but any file name
that looks like a config, which might be a big aggressive but allows us
to do layered config in the future.... We've been saying that for a
while.
Fixes #711
2023-06-22 12:20:07 -05:00
Ed Page
4ccd3cba61
Merge pull request #757 from figsoda/deprecated
...
chore: remove usages of deprecated functions
2023-06-22 10:39:16 -05:00
figsoda
ef1907fb1e
chore: Remove usages of deprecated functions
2023-06-22 11:22:46 -04:00
Ed Page
8074cc6029
chore: Release
2023-06-22 10:13:38 -05:00
Ed Page
e5121970ac
docs: Update changelog
2023-06-22 10:13:29 -05:00
Ed Page
7cce285602
Merge pull request #761 from epage/rust
...
fix(config): Always apply type defaults
2023-06-22 10:12:44 -05:00
Ed Page
9e293916d2
fix(config): Always apply type defaults
...
Fixes #760
2023-06-22 09:57:15 -05:00
Ed Page
72c773aade
test(config): Verify bad merge
2023-06-22 09:16:23 -05:00
Ed Page
84c8b30e06
chore: Release
2023-06-21 14:51:20 -05:00
Ed Page
938e679bd4
docs: Update changelog
2023-06-21 14:51:13 -05:00
Ed Page
a2074608f6
Merge pull request #756 from epage/types
...
fix(config): User file types override default file types
2023-06-21 14:50:19 -05:00
Ed Page
fce92e4e5f
fix(config): User file types override default file types
...
This also ensures `typos --type-list` will report the glob in only one
place.
Fixes #754
2023-06-21 14:31:04 -05:00
Ed Page
77f0389a9e
test(config): Reproduce types bug
2023-06-21 14:17:19 -05:00
Ed Page
1a4e9428d6
chore: Release
2023-06-20 09:25:04 -05:00
Ed Page
5589249c61
docs: Update changelog
2023-06-20 09:24:56 -05:00
Ed Page
78fa8783f0
Merge pull request #750 from epage/lock
...
fix: Ensure stdout is locked
2023-06-20 09:24:16 -05:00
Ed Page
427d127e8a
fix: Ensure stdout is locked
...
In 3a29410c1b
, we switched to anstream
which doesn't seem to be locking properly (rust-lang/cargo#12289 ). For
now, we are working around it.
Fixes #749
2023-06-20 09:04:31 -05:00
Ed Page
59888680cc
chore: Release
2023-06-19 10:28:02 -05:00
Ed Page
e59d13142b
docs: Update changelog
2023-06-19 10:27:38 -05:00
Ed Page
ebf42424c3
Merge pull request #747 from tklauser/accreting
...
fix(dict): Don't correct "accreting"
2023-06-19 10:26:47 -05:00
Tobias Klauser
28fbdec824
fix(dict): Don't correct "accreting"
...
"accreting" is the present participle of "accrete", see
https://en.wiktionary.org/wiki/accreting . Don't correct it to
"accrediting".
2023-06-19 16:58:17 +02:00
Ed Page
bc22137740
Merge pull request #741 from szepeviktor/patch-1
...
chore: remove trailing space from Wikipedia dictionary
2023-06-08 11:49:04 -05:00
Viktor Szépe
16b84f46fd
Remove trailing space from Wikipedia dictionary
2023-06-08 17:57:56 +02:00
Ed Page
f37d3f8e3c
chore: Release
2023-06-08 10:29:00 -05:00
Ed Page
172ff0bb5a
chore: Release
2023-06-08 10:27:43 -05:00
Ed Page
b6990342b5
docs: Update changelog
2023-06-08 10:07:17 -05:00
Ed Page
7384c2cd19
Merge pull request #740 from epage/compat
...
feat(dict): Pull in codespell items
2023-06-08 10:01:52 -05:00
Ed Page
7523a865f7
feat(dict): Pull in codespell items
2023-06-08 09:26:12 -05:00
Ed Page
a9d9fc03a2
test(dict): Report more cases to user
2023-06-08 09:23:10 -05:00
Ed Page
09f096a096
chore(dict): Automate more cleanup
2023-06-08 08:54:36 -05:00
Ed Page
6cc3d16d3f
Merge pull request #739 from epage/dict
...
fix: Update 3rd party dicts
2023-06-08 08:30:29 -05:00
Ed Page
ccc72d7b42
fix: Update 3rd party dicts
2023-06-08 07:56:08 -05:00
Ed Page
20b36ca07f
chore: Release
2023-06-01 19:49:16 -05:00
Ed Page
27c9fe7c79
chore: Release
2023-06-01 06:22:12 -05:00
Ed Page
2dfcd3a458
docs: Update changelog
2023-06-01 06:21:47 -05:00
Ed Page
cdfaa78768
Merge pull request #734 from epage/may
...
fix(dict): Include May updates
2023-06-01 17:55:37 -05:00
Ed Page
a78f83bab3
Merge pull request #731 from crate-ci/renovate/criterion-0.x
...
chore(deps): update rust crate criterion to 0.5
2023-06-01 09:45:34 -05:00
Ed Page
5277bf390e
fix(dict): Allow plural deque -> deques
2023-06-01 06:07:12 -05:00