Code Monkey home page Code Monkey logo

Comments (10)

sth2018 avatar sth2018 commented on May 26, 2024

Do you mean to add notes automatically from definitions & examples?

from fastwordquery.

 avatar commented on May 26, 2024

No.

In the example above, the word constitution (which will be searched in Dictionaries) would be searched within the definition and example texts obtained from Dictionaries and replace it with its clozed word.

From original definition and example texts in Dictionaries:
A constitution is a document of principles for a government.
The country’s constitution said a prime minister could only serve three terms.

To clozed texts:
A {{c1::constitution}} is a document of principles for a government.
The country’s {{c1::constitution}} said a prime minister could only serve three terms.

Here is an Anki addon for clozing words:
https://github.com/sarajaksa/anki-addons/blob/master/clozing-terms.py

and documentation about cloze deletion:
https://apps.ankiweb.net/docs/manual.html#cloze

from fastwordquery.

sth2018 avatar sth2018 commented on May 26, 2024

Is this you need? Test it, pls. Thx!

from fastwordquery.

 avatar commented on May 26, 2024

Thanks, it's working close to my need but is creating multiple cloze deletion notes unnecessarily when the original word is repeated multiple times in the texts.

These examples will create 2 cloze deletion notes:

  • She’s got a strong {{c2::constitution}} – she’ll recover in no time.
  • What’s the chemical {{c1::constitution}} of the dye?

First cloze note with:

  • She’s got a strong [...] – she’ll recover in no time.
  • What’s the chemical constitution of the dye?

Second with:

  • She’s got a strong constitution – she’ll recover in no time.
  • What’s the chemical [...] of the dye?

This isn't useful because you see the word constitution in both cloze notes.

I think you can always use the tag "c1" (instead of "c1" and "c2") without problems, because the original word constitution is always the same in all examples and texts, so only one cloze note will be created with:

  • She’s got a strong [...] – she’ll recover in no time.
  • What’s the chemical [...] of the dye?

from fastwordquery.

sth2018 avatar sth2018 commented on May 26, 2024

OK, I had fixed it, you can test it again.

from fastwordquery.

 avatar commented on May 26, 2024

Now it's only creating one cloze note, but I've detected a small problem.

It doesn't cloze words inside words, for example the word zoom wasn't clozed in this phrase:
The camera zoomed in on the child’s face.

and it would be:
The camera {{c1::zoom}}ed in on the child’s face.

Is posible cloze words inside words?

So this feature would be perfect.

from fastwordquery.

sth2018 avatar sth2018 commented on May 26, 2024

I rewrite the cloze related function.
It works for most words, but a few irregular words still don't work.

from fastwordquery.

 avatar commented on May 26, 2024

Thanks for all your effort in this addon, also you're very very fast.

Could you cloze only the original word (e.g. zoom) instead the derivative word (zoomed)?

Now it clozes the derivative word zoomed:
The camera {{c1::zoomed}} in on the child's face.

but I think this way is better to learn it in the context (only zoom clozed and ed without cloze):
The camera {{c1::zoom}}ed in on the child's face.

so the clozed note will show:
The camera [...]ed in on the child's face.

from fastwordquery.

sth2018 avatar sth2018 commented on May 26, 2024

I modified related codes, now It's like below:

Ordinary words example (zoom, like, etc.):

  • The camera {{c1::zoom}}ed in on the child's face.
  • She {{c1::like}}s me.

Special words example (study, modify, etc.):

  • I gave up my {{c1::studies}} when I had the baby.
  • The regulations can only be {{c1::modified}} by a special committee.

from fastwordquery.

 avatar commented on May 26, 2024

Fantastic !!!

Thank you very much, now it's perfect.

from fastwordquery.

Related Issues (20)

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.