clozecraft
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

ClozeCraft

ClozeCraft is a library for creating cloze deletion flashcards from text. It seeks to be a simple, easy to use, and flexible tool for creating flashcards from text.

Usage Example

import { ClozeCrafter } from "clozecraft";

const clozeCrafter = new ClozeCrafter( ['{{[c123::]answer[::hint]}}'] );
const clozeNote = clozeCrafter.createClozeNote('People from {{c1::Brazil::country}} are called {{c2::Brazilians::nationality}}.');

console.log(clozeNote?.getCardFront(0)); // People from [country] are called Brazilians.
console.log(clozeNote?.getCardBack(0)); // People from Brazil are called Brazilians.
console.log(clozeNote?.getCardFront(1)); // People from Brazil are called [nationality].
console.log(clozeNote?.getCardBack(1)); // People from Brazil are called Brazilians.

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i clozecraft

    Weekly Downloads

    2

    Version

    0.4.0

    License

    MIT

    Unpacked Size

    45.2 kB

    Total Files

    45

    Last publish

    Collaborators

    • ocimar