de-compromise 0.0.6 → 0.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/README.md +50 -1
- package/builds/de-compromise.cjs +1044 -403
- package/builds/de-compromise.min.js +1 -1
- package/builds/de-compromise.mjs +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
<img height="25px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
|
|
13
13
|
<div align="center">
|
|
14
14
|
<sub>see:
|
|
15
|
-
<a href="https://github.com/nlp-compromise/fr-compromise">
|
|
15
|
+
<a href="https://github.com/nlp-compromise/fr-compromise">Französisch</a> • <a href="https://github.com/nlp-compromise/es-compromise">Spanisch</a> • <a href="https://github.com/spencermountain/compromise">Englisch</a> • <a href="https://github.com/nlp-compromise/it-compromise">Italienisch</a>
|
|
16
|
+
• <a href="https://github.com/nlp-compromise/pt-compromise">Portugiesisch</a>
|
|
16
17
|
</sub>
|
|
17
18
|
</div>
|
|
18
19
|
</div>
|
|
@@ -62,6 +63,7 @@ doc.text()
|
|
|
62
63
|
// 'Ich habe einhundertelf Euro'
|
|
63
64
|
```
|
|
64
65
|
|
|
66
|
+
|
|
65
67
|
<!-- spacer -->
|
|
66
68
|
<img height="15px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
|
|
67
69
|
|
|
@@ -76,6 +78,53 @@ oder im Browser:
|
|
|
76
78
|
</script>
|
|
77
79
|
```
|
|
78
80
|
|
|
81
|
+
### Konjugation von Verbformen
|
|
82
|
+
erkennen und transformieren jede Verbform:
|
|
83
|
+
```js
|
|
84
|
+
txt =
|
|
85
|
+
let doc = nlp('Die Kinder waren geschwommen')
|
|
86
|
+
console.log(doc.verbs().conjugate())
|
|
87
|
+
/*
|
|
88
|
+
[{
|
|
89
|
+
presentTense: {
|
|
90
|
+
first: 'schwimme',
|
|
91
|
+
second: 'schwimmst',
|
|
92
|
+
third: 'schwimmt',
|
|
93
|
+
firstPlural: 'schwimmen',
|
|
94
|
+
secondPlural: 'schwimmt',
|
|
95
|
+
thirdPlural: 'schwimmen'
|
|
96
|
+
},
|
|
97
|
+
pastTense: {
|
|
98
|
+
first: 'schwamm',
|
|
99
|
+
second: 'schwammst',
|
|
100
|
+
third: 'schwamm',
|
|
101
|
+
firstPlural: 'schwammen',
|
|
102
|
+
secondPlural: 'schwammt',
|
|
103
|
+
thirdPlural: 'schwammen'
|
|
104
|
+
},
|
|
105
|
+
subjunctive1: {
|
|
106
|
+
first: 'schwimme',
|
|
107
|
+
second: 'schwimmest',
|
|
108
|
+
third: 'schwimme',
|
|
109
|
+
firstPlural: 'schwimmen',
|
|
110
|
+
secondPlural: 'schwimmet',
|
|
111
|
+
thirdPlural: 'schwimmen'
|
|
112
|
+
},
|
|
113
|
+
subjunctive2: {
|
|
114
|
+
first: 'schwämme',
|
|
115
|
+
second: 'schwämmest',
|
|
116
|
+
third: 'schwämme',
|
|
117
|
+
firstPlural: 'schwämmen',
|
|
118
|
+
secondPlural: 'schwämmet',
|
|
119
|
+
thirdPlural: 'schwämmen'
|
|
120
|
+
},
|
|
121
|
+
imperative: { secondSingular: 'schwimme', secondPlural: 'schwimmt' },
|
|
122
|
+
pastParticiple: 'geschwommen',
|
|
123
|
+
presentParticiple: 'schwimmend'
|
|
124
|
+
}]
|
|
125
|
+
*/
|
|
126
|
+
```
|
|
127
|
+
|
|
79
128
|
see [en-compromise/api](https://github.com/spencermountain/compromise#api) for full API documentation.
|
|
80
129
|
|
|
81
130
|
Bitte beitreten, um zu helfen! - please join to help!
|