8000 RiTa v2.0 API · Issue #568 · dhowe/RiTaV1 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

RiTa v2.0 API #568

Open
Open

Description

@dhowe

Ticket for discussion of the reduced API for version 2.0 of RiTa. The goal here is to provide a minimal (and thus more easily maintained/tested) version that includes core features of the library but removes the sort of utility functions (strings, files, etc) which can be easily handled in the host language, whether JavaScript, Java, or whatever else)

Main items to be added

  • Support for parsing of RitaScript
  • Integration of RiGrammar with RitaScript CFGs (?)
  • Better implementation of RiMarkov
  • qunit -> mocha / chai
  • ES6

Main items to be removed

  • RiWordNet (not core)
  • File-loading (leave to host language)
  • Basic string-manipulation (leave to host language)
  • RiString (feature analysis moves to RiTa object)

Questions

  • Support for other languages ?
    • Java
    • Python

Activity

  1. dhowe commented on Jun 19, 2019

    @dhowe
    OwnerAuthor

    RiTa
    RiTa.VERSION

    RiTa.alliterations()
    RiTa.concordance()
    RiTa.conjugate()
    RiTa.hasWord()
    RiTa.env()
    RiTa.pastParticiple()
    RiTa.phonemes()
    RiTa.posTags()
    RiTa.posTagsInline()
    RiTa.presentParticiple()

    RiTa.stresses()
    RiTa.syllables()
    RiTa.isAbbreviation()
    RiTa.isAdjective()
    RiTa.isAdverb()
    RiTa.isAlliteration()
    RiTa.isNoun()
    RiTa.isPunctuation()
    RiTa.isQuestion()
    RiTa.isRhyme()
    RiTa.isVerb()
    RiTa.kwic()
    RiTa.pluralize()
    RiTa.random()
    RiTa.randomOrdering()
    RiTa.randomSeed()
    RiTa.randomWord()
    RiTa.rhymes()
    RiTa.parseDial()
    RiTa.similarBy(opts)
    RiTa.singularize()
    RiTa.sentences()
    RiTa.stem()
    RiTa.tokenize()
    RiTa.untokenize()
    RiTa.words()

    RiTa.addWord()
    RiTa.isW_Question()
    RiTa.lexicalData()
    RiTa.minEditDistance()
    RiTa.randomItem()
    RiTa.similarByLetter()
    RiTa.similarBySound()
    RiTa.similarBySoundAndLetter()

    RiTa.stripPunctuation()
    RiTa.substrings()
    RiTa.superstrings()
    RiTa.trimPunctuation()

    RiGrammar
    addRule()
    addRules()
    expand()
    expandWith()
    hasRule()
    removeRule()

    expandFrom()
    getGrammar()
    load()
    loadFrom()
    print()
    ready()
    reset()

    RiMarkov
    generate()
    generateTokens()
    generateUntil()
    getCompletions()
    getProbability()
    addTokens()
    addText()
    size()

    generateSentence()
    generateSentences()
    getProbabilities()
    loadFrom()
    loadText()
    loadTokens()
    print()
    ready()

    RiWordNet
    RiString

  2. triptych commented on Jun 21, 2019

    @triptych

    Please don't remove the file loading functionality -- or at least perhaps move it to its own module. If you do remove it, please have some demo with the host language option shown.

  3. dhowe commented on Jul 21, 2019

    @dhowe
    OwnerAuthor

    Indeed -- we'll make sure to have simple file-loading examples in the major environments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0