@idmyn/cryptic
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

@idmyn/cryptic

Functions to help you solve cryptic crossword clues, without giving you the answers.

credit

This repo is an adaptation of niallmurphy-ie/Cryptic-Crossword-Companion

usage

parseClue("Silly twit in charge is initially mystified by repartee")

// returns

{
  abbreviations: [
    {
      phrase: "in charge",
      abbreviations: ["ic"],
    },
    {
      phrase: "is",
      abbreviations: ["s", "est"],
    },
    {
      phrase: "by",
      abbreviations: ["per", "x"],
    },
  ],
  indicators: [
    {
      phrase: "silly",
      clueTypes: ["anagram"],
    },
    {
      phrase: "in",
      clueTypes: ["insertion", "linking", "letter selection"],
    },
    {
      phrase: "is",
      clueTypes: ["linking"],
    },
    {
      phrase: "initially",
      clueTypes: ["letter selection"],
    },
    {
      phrase: "by",
      clueTypes: ["juxtaposition"],
    },
  ],
}

Readme

Keywords

none

Package Sidebar

Install

npm i @idmyn/cryptic

Weekly Downloads

1

Version

0.0.9

License

none

Unpacked Size

364 kB

Total Files

23

Last publish

Collaborators

  • idmyn