Comments (10)
Do you mean to add notes automatically from definitions & examples?
from fastwordquery.
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.
Is this you need? Test it, pls. Thx!
from fastwordquery.
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.
OK, I had fixed it, you can test it again.
from fastwordquery.
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.
I rewrite the cloze related function.
It works for most words, but a few irregular words still don't work.
from fastwordquery.
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.
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.
Fantastic !!!
Thank you very much, now it's perfect.
from fastwordquery.
Related Issues (20)
- I can't get pictures and pronunciations from bing
- Plz support Japanese 求求了请适配下日语吧!
- 点击query报错 HOT 4
- Qt6不兼容了 HOT 4
- macOS Ventura V13.0.1, could not work, and report OSError: [Errno 30] Read-only file system HOT 1
- 通过修改context.py文件,使得插件在2.1.50+【含2.1.50】版本Anki上正常工作的方法【非原创】-解决Qt6不兼容问题 HOT 17
- 选择卡片类型后发生错误 HOT 1
- 发生了一个错误
- Problem solving for Anki 2.1.X HOT 2
- 使用dictionary获取examples失败 HOT 1
- 制卡里的单词发音放的位置不对 HOT 1
- win11电脑装的Anki Q6 ,用不了FW,各位大神能帮忙看看吗? HOT 1
- 报错 HOT 1
- Hope it can update! HOT 1
- I can't add-ons as Fast Word Query HOT 1
- bug HOT 2
- 无法使用的朋友们请在这里安装最新版 Please get the latest version of FWQ from here:
- Local stardict dictionary - only default field available HOT 1
- 查词前,可以对字段中的单词可以匹配正则表达式
- 运行错误 HOT 1
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 fastwordquery.