项目作者: shannonwells

项目描述 :
Verbs (en-elixir) English verb conjugation in Elixir.
高级语言: Elixir
项目地址: git://github.com/shannonwells/verbs_ex.git
创建时间: 2018-02-21T06:55:00Z
项目社区:https://github.com/shannonwells/verbs_ex

开源协议:MIT License

下载


Verbs

English verb conjugation in Elixir.

Conjugates most common English verbs for all persons, tenses, standard aspects, and modern moods (with active diathesis). Standard and exceptional spelling rules are obeyed.

  1. Verbs.conjugate :be, %{:tense => "past", :person => "second", :plurality => "singular"}
  2. iex> "were"
  3. Verb.conjugate "sleep" %{:tense => "future", :person => "first", :plurality => "singular"}
  4. "will sleep"

Installation

Add this line to your mix.exs dependencies:

  1. { :dep_from_git, git: https://github.com/shannonwells/verbs.git, tag: "0.6.1"},

‘Options’

The options are currently not optional; tense, person and plurality are required. Option values must be strings.

:tense past, present, future.

:person first, second, third

:plurality singular, plural

Not yet implemented

:aspect habitual, perfect, perfective, progressive, prospective
See below for a guide to verb aspect.

:mood - indicative, imperative, subjunctive

Tense/aspect quick reference

  1. EXAMPLE TENSE ASPECT
  2. I accepted past perfective
  3. I had accepted past perfect
  4. I was accepting past progressive
  5. I usually accepted past habitual
  6. I was about to accept past prospective
  7. I accept present habitual
  8. I have accepted present perfect
  9. I am accepting present progressive
  10. I am about to accept present prospective
  11. I will accept future habitual
  12. I will have accepted future perfect
  13. I will be accepting future progressive
  14. I will be about to accept future prospective

Issues

Bug reports are welcome. Please file an issue in this repo if you find one.

Acknowledgements

Copyright (c) 2018 Shannon E. Wells. See LICENSE for details.