Comments (6)
Thanks a lot for all your efforts!
from spylls.
What are you suggesting here? What's the desired behavior for definitely-wrong dictionary files?
from spylls.
You are right - the problem is the affix file.
But maybe there is an issue, this affix looks correct but fails:
https://github.com/wooorm/dictionaries/blob/main/dictionaries/uk/index.aff#L1464
from spylls.
@doublex Ugh, this is more complicated. It seems I've never encountered dictionaries with ()
in conditions before, even when running smoke tests on all dictionaries that were available at the moment of spylls finalization (not even sure if Hunspell supports this syntax). I'll try to take a closer look in the next days.
from spylls.
They are a rare (strange?) case. Maybe simply remove ()
?
from spylls.
Surprisingly enough, this case, while indeed rare, made me rethink a bit why it is a problem... And simplify code for it not be it anymore :)
See f92f74b — there are significant simplifications in spylls/hunspell/data/aff.py
, dropping the hacky regexp construction.
Released as 0.1.7, works with uk_UA as expected.
from spylls.
Related Issues (19)
- TypeError: '<' not supported between instances of 'Word' and 'Word' HOT 8
- Upgrade the package HOT 2
- Integrate Black for formatting HOT 2
- spylls fails to load Dutch dictionary HOT 3
- Using spylls to clean-up text file HOT 1
- Support for extracting all valid words from a dictionary HOT 28
- MIT license certainly isn't compatible with Hunspell's license HOT 1
- ValueError: invalid literal for int() with base 10: HOT 1
- It takes too long time to return an answer on a corner case HOT 1
- Knob to fix word-case HOT 2
- .dic and .aff content by param. HOT 7
- ask for the Stemming feature HOT 1
- Infinite loop when suggesting HOT 2
- Generating dictionary wordforms/unmunch HOT 12
- Question: Does hunspell/spylls have facility to change the root of the word? HOT 1
- Spelling mistake in example code on spylls.readthedocs.io HOT 1
- With Korean dictionary, I got random results HOT 1
- Feature request : Adding words to the dictionary at runtime HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spylls.