rita 2.8.31 → 3.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,7 +1,7 @@
1
1
  GNU GENERAL PUBLIC LICENSE
2
2
  Version 3, 29 June 2007
3
3
 
4
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
5
  Everyone is permitted to copy and distribute verbatim copies
6
6
  of this license document, but changing it is not allowed.
7
7
 
@@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found.
645
645
  GNU General Public License for more details.
646
646
 
647
647
  You should have received a copy of the GNU General Public License
648
- along with this program. If not, see <http://www.gnu.org/licenses/>.
648
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
649
649
 
650
650
  Also add information on how to contact you by electronic and paper mail.
651
651
 
@@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
664
664
  You should also get your employer (if you work as a programmer) or school,
665
665
  if any, to sign a "copyright disclaimer" for the program, if necessary.
666
666
  For more information on this, and how to apply and follow the GNU GPL, see
667
- <http://www.gnu.org/licenses/>.
667
+ <https://www.gnu.org/licenses/>.
668
668
 
669
669
  The GNU General Public License does not permit incorporating your program
670
670
  into proprietary programs. If your program is a subroutine library, you
671
671
  may consider it more useful to permit linking proprietary applications with
672
672
  the library. If this is what you want to do, use the GNU Lesser General
673
673
  Public License instead of this License. But first, please read
674
- <http://www.gnu.org/philosophy/why-not-lgpl.html>.
674
+ <https://www.gnu.org/licenses/why-not-lgpl.html>.
package/README.md CHANGED
@@ -1,19 +1,20 @@
1
- [![Build Status](https://travis-ci.org/dhowe/RiTaJS.svg?branch=master)](https://travis-ci.org/dhowe/ritajs)[![Unit Tests](https://github.com/dhowe/ritajs/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/dhowe/ritajs/actions?query=workflow%3A%22unit+tests%22) <a href="http://www.gnu.org/licenses/gpl-3.0.en.html"><img src="https://img.shields.io/badge/license-GPL-orange.svg" alt="license"></a> <a href="https://www.npmjs.com/package/rita"><img src="https://img.shields.io/npm/v/rita.svg" alt="npm version"></a> <!--[![](https://data.jsdelivr.com/v1/package/npm/rita/badge)](https://www.jsdelivr.com/package/npm/rita)--> [![CDNJS](https://img.shields.io/cdnjs/v/rita.svg)](https://cdnjs.com/libraries/rita/)
1
+ <a href="https://github.com/dhowe/rjs3/actions"><img src="https://github.com/dhowe/rjs3/actions/workflows/node.js.yml/badge.svg" alt="ci tests"></a> <a href="https://www.gnu.org/licenses/gpl-3.0.en.html"><img src="https://img.shields.io/badge/license-GPL-orange.svg" alt="license"></a> <a href="https://www.npmjs.com/package/rita"><img src="https://img.shields.io/npm/v/rita.svg" alt="npm version"></a> <!--[![](https://data.jsdelivr.com/v1/package/npm/rita/badge)](https://www.jsdelivr.com/package/npm/rita)--> [![CDNJS](https://img.shields.io/cdnjs/v/rita.svg)](https://cdnjs.com/libraries/rita/)
2
2
 
3
3
 
4
4
  ## RiTa: tools for generative natural language
5
5
 
6
- RiTa is implemented in Java and JavaScript, with a common [API](https://github.com/dhowe/rita4j/blob/master/README.md#api) for both, and is free/libre/open-source via the GPL license.
6
+ RiTa is implemented in JavaScript and Java, with a common [API](https://github.com/dhowe/rita4j/blob/master/README.md#api) for both, and is free/libre/open-source via the GPL license.
7
7
 
8
- ### Features in v2.0
8
+ ### Features in v3.0
9
9
 
10
10
  * Smart lexicon search for words matching part-of-speech, syllable, stress and rhyme patterns
11
11
  * Fast, heuristic algorithms for inflection, conjugation, stemming, tokenization, and more
12
12
  * Letter-to-sound engine for feature analysis of arbitrary words (with/without lexicon)
13
13
  * Integration of the [RiScript](https://observablehq.com/@dhowe/riscript) scripting language, designed for writers
14
- * Powerful new options for generation via grammars and Markov chains
14
+ * New options for generation via grammars and Markov chains
15
+ * Published in ESM, CommonJS and as an IIFE
15
16
 
16
- Note: version 2.0 contains breaking changes -- please check the [release notes](https://rednoise.org/rita/#whats-new-wrapper)
17
+ Note: version 3.0 contains breaking changes -- please check the [release notes](https://rednoise.org/rita/#whats-new-wrapper)
17
18
 
18
19
  ### Installation
19
20
 
@@ -26,10 +27,6 @@ Note: version 2.0 contains breaking changes -- please check the [release notes](
26
27
  ```javascript
27
28
  let RiTa = require('rita');
28
29
 
29
- // to find rhymes
30
- let rhymes = RiTa.rhymes('sweet');
31
- console.log(rhymes);
32
-
33
30
  // to analyze a sentence
34
31
  let data = RiTa.analyze("The elephant took a bite!");
35
32
  console.log(data);
@@ -120,7 +117,7 @@ console.log(grammar.expand());
120
117
 
121
118
  ## RiScript
122
119
 
123
- RiScript is a writer-focused scripting language integrated with RiTa. It enables simple generative primitives within plain text for dynamic expansion at runtime. RiScript primitives can be used as part of any [RiTa grammar](https://rednoise.org/rita/reference/RiTa/grammar/) or executed directly using [RiTa.evaluate()](https://rednoise.org/rita/reference/RiTa/evaluate/). For documentation, see [this interactive notebook](https://observablehq.com/@dhowe/riscript).
120
+ RiScript is a writer-focused scripting language integrated with RiTa. It enables simple generative primitives within plain text for dynamic expansion at runtime. RiScript primitives can be used as part of any [RiTa grammar](https://rednoise.org/rita/reference/RiTa/grammar/) or executed directly using [RiTa.evaluate()](https://rednoise.org/rita/reference/RiTa/evaluate/). For more info, see [this interactive notebook](https://observablehq.com/@dhowe/riscript).
124
121
 
125
122
  <br>
126
123
 
@@ -139,20 +136,10 @@ $ npm run build
139
136
  $ npm run test
140
137
 
141
138
  ```
142
- If all goes according to plan, you should see a list of successful tests and find the library built in 'dist'
139
+ If all goes well, you should see a list of successful tests and find the library built in 'dist'
143
140
 
144
141
  <br>
145
142
 
146
- During development it is faster to run tests directly on the source, rather then the built library:
147
- ```sh
148
- $ npm run test.src
149
- ```
150
-
151
- You can also watch the source code and build automatically on any change:
152
- ```sh
153
- $ npm run watch.src
154
- ```
155
-
156
143
  Please make contributions via [fork-and-pull](https://reflectoring.io/github-fork-and-pull/) - thanks!
157
144
 
158
145
  ---------------