de-compromise 0.0.3 → 0.0.4

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/README.md CHANGED
@@ -10,6 +10,11 @@
10
10
  </sub>
11
11
  </div>
12
12
  <img height="25px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
13
+ <div align="center">
14
+ <sub>see:
15
+ <a href="https://github.com/nlp-compromise/fr-compromise">french</a> • <a href="https://github.com/nlp-compromise/es-compromise">spanish</a> • <a href="https://github.com/spencermountain/compromise">english</a>
16
+ </sub>
17
+ </div>
13
18
  </div>
14
19
 
15
20
  <div align="center">
@@ -48,16 +53,31 @@ dok.match('#Noun').out('array')
48
53
  // [ 'wir', 'Helden', 'Tag.' ]
49
54
  ```
50
55
 
56
+ ### Parsing von Zahlen / Number parsing
57
+ es kann Zahlen in natürlicher Sprache analysieren und formatieren
58
+ ```js
59
+ let doc = ldv('Ich habe einhunderteinundzwanzig Euro')
60
+ doc.numbers().minus(10)
61
+ doc.text()
62
+ // 'Ich habe einhundertelf Euro'
63
+ ```
64
+
65
+ <!-- spacer -->
66
+ <img height="15px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
67
+
68
+ oder im Browser:
51
69
  ```html
52
- <script type="text/javascript" src="https://unpkg.com/de-compromise"></script>
70
+ <script src="https://unpkg.com/de-compromise"></script>
53
71
  <script>
54
72
  let txt = 'Hast du etwas Zeit für mich? Dann singe ich ein Lied für dich'
55
73
  let doc = deCompromise(txt) //globalen Namensraum
56
74
  console.log(doc.sentences(1).json())
57
- // { text:'Dann singe...', terms:[...] }
75
+ // { text:'Dann singe...', terms:[ ... ] }
58
76
  </script>
59
77
  ```
60
78
 
79
+ see [en-compromise/api](https://github.com/spencermountain/compromise#api) for full API documentation.
80
+
61
81
  Bitte beitreten, um zu helfen! - please join to help!
62
82
 
63
83
  <!-- spacer -->
@@ -68,6 +88,8 @@ Bitte beitreten, um zu helfen! - please join to help!
68
88
  </h2>
69
89
 
70
90
 
91
+
92
+
71
93
  ### Beitragen / Contributing
72
94
  ```
73
95
  git clone https://github.com/nlp-compromise/de-compromise.git
@@ -98,4 +120,7 @@ npm watch
98
120
  </tr>
99
121
  </table>
100
122
 
123
+ ### See also
124
+ * [dweiss/compound-splitter](https://github.com/dweiss/compound-splitter) - german compound-word splitter
125
+ * [danielnaber/jwordsplitter](https://github.com/danielnaber/jwordsplitter) - Java compound-word splitter
101
126
  MIT