Coder Social home page Coder Social logo

latinverb's Introduction

LatinVerb

DESCRIPTION

SUMMARY

LatinVerb is a library, written in Ruby, that is used to make dealing with verb objects, and in particular Latin verbs, easier. By providing a definitional string like: amō amāre amāvī amatum, LatinVerb will generate the 100+ forms and allow you to access them via method calls like passive_voice_subjunctive_mood_imperfect_tense_third_person_singular_number and get back amaretur.

HANDLING AMBIGUITY

LatinVerb also has tolerances for ambiguity. Where passive_voice_subjunctive_mood_imperfect_tense_third_person_singular_number is considered a "full" vector that uniquely identifies one value, it is possible to pass "incomplete" vectors such as passive_voice_subjunctive_mood_imperfect_tense_third_person which would return two values (amārētur and amārentur). Similarly, the person could be dropped and the number included and three values would be returned: amārētur, amārēris, and amārer.

PHONETICS / PHONOGRAPHICS

This library deals with some particularities of Latin verbs:

  • Handling Unicode storage of characters with a long sound (macron)
  • Handling of macron removal as according to the pronunciation rules of Latin (before repeated vowel, before certain consonants at end of word, etc.)
  • Resolving certain vectors of specified forms: person, number, voice, mood, and tense.

DYNAMICITY

Importantly, none of the values shown for the verbs are statically defined (save irregulars). Rather, each and every conjugated verb form is generated on the fly as a result of applying a heuristic transformation to the verb (i.e. "take the stem and add such-and-such ending(s) to it").

IRREGULAR / DEPONENT SUPPORT

LatinVerb also supports irregular and deponent verbs. It also handles some of the "odder" types of verb (perfect only, impersonal, present only).

IMPROVEMENTS

This is a complete overhaul of my earlier "LatinVerb" library. The (1) iteration did not have support for deponents or irregulars, nor was its metaprogrammatic model as tight nor were various components properly modularized.

THANKS

  • Prof. James Burleson for teaching me Latin
  • Lauren Roth for everything but most of all her patience
  • Mike Perham for "meaning" idea to a TenseBlock

AUTHOR

Steven G. Harms (steven . harms AT gmail)

latinverb's People

Contributors

sgharms avatar trevoke avatar

Watchers

 avatar  avatar

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.