GithubHelp home page GithubHelp logo

aff-regex about spylls HOT 6 CLOSED

doublex avatar doublex commented on June 6, 2024
aff-regex

from spylls.

Comments (6)

doublex avatar doublex commented on June 6, 2024 1

Thanks a lot for all your efforts!

from spylls.

zverok avatar zverok commented on June 6, 2024

What are you suggesting here? What's the desired behavior for definitely-wrong dictionary files?

from spylls.

doublex avatar doublex commented on June 6, 2024

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.

zverok avatar zverok commented on June 6, 2024

@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.

doublex avatar doublex commented on June 6, 2024

They are a rare (strange?) case. Maybe simply remove ()?

from spylls.

zverok avatar zverok commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.