Skip to content

Commit

Permalink
add sentiment and tail node translations
Browse files Browse the repository at this point in the history
bump versions on npm
  • Loading branch information
Dave Conway-Jones committed Dec 7, 2018
1 parent d0f36dc commit 20b2eac
Show file tree
Hide file tree
Showing 7 changed files with 106 additions and 2 deletions.
35 changes: 35 additions & 0 deletions analysis/sentiment/locales/ja/72-sentiment.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!--
Copyright JS Foundation and other contributors, http://js.foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<script type="text/x-red" data-help-name="sentiment">
<p>指定したプロパティ(デフォルトは<code>payload</code>)を分析し、<code>sentiment</code>オブジェクトを追加します。</p>
<h3>出力</h3>
<dl class="message-properties">
<dt>sentiment <span class="property-type">オブジェクト</span></dt>
<dd>AFINN-111による感情分析の結果</dd>
<dt>sentiment.score <span class="property-type">数値</span></dt>
<dd>感情分析スコア</dd>
</dl>
<h3>入力</h3>
<dl class="message-properties">
<dt>overrides <span class="property-type">オブジェクト</span></dt>
<dd>単語スコアの上書きをするためのオブジェクト - <code>{ word:score,... }</code></dd>
</dl>
<h3>詳細</h3>
<p>ゼロ以上のスコアはポジティブ、ゼロ以下はネガティブを意味します。</p>
<p>スコアの範囲は通常-5から+5ですが、より大きかったり小さかったりすることもあります。</p>
<p>詳細は<a href="https://github.com/thisandagain/sentiment/blob/master/README.md" target="_blank">the Sentiment docs here</a>を参照してください。</p>
</script>
8 changes: 8 additions & 0 deletions analysis/sentiment/locales/ja/72-sentiment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"sentiment": {
"sentiment": "sentiment",
"label": {
"language": "言語"
}
}
}
2 changes: 1 addition & 1 deletion analysis/sentiment/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "node-red-node-sentiment",
"version" : "0.1.0",
"version" : "0.1.1",
"description" : "A Node-RED node that uses the AFINN-165 wordlists for sentiment analysis of words translated into multiple languages including emojis.",
"dependencies" : {
"multilang-sentiment" : "^1.1.6"
Expand Down
25 changes: 25 additions & 0 deletions storage/tail/locales/ja/28-tail.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!--
Copyright JS Foundation and other contributors, http://js.foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<script type="text/x-red" data-help-name="tail">
<p>設定したファイルの末尾を出力(追加されたデータを監視)します。(Linux/Macのみ)</p>
<p>このノードは<b>tail -F</b>Windows</p>
<h3>出力</h3>
<ul>
<li>(UTF-8形式の)テキストファイルは文字列を返却。</li>
<li>バイナルファイルはバッファオブジェクトを返却。</li>
</ul>
</script>
19 changes: 19 additions & 0 deletions storage/tail/locales/ja/28-tail.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"tail": {
"tail": "tail",
"label": {
"filename": "ファイル名",
"type": "ファイル形式",
"splitlines": "改行でメッセージを分割",
"name": "名前",
"regex": "正規表現を使用"
},
"action": {
"text": "文字列",
"binary": "バイナリバッファ"
},
"errors": {
"windowsnotsupport": "現在Windows上での動作は対応していません"
}
}
}
17 changes: 17 additions & 0 deletions storage/tail/locales/zh-CN/28-tail.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"tail": {
"tail": "tail",
"label": {
"filename": "文件名",
"type": "文件类型",
"splitlines": "\\n来拆分行?"
},
"action": {
"text": "文本 - 返回字符串",
"binary": "二进制 - 返回Buffer"
},
"errors": {
"windowsnotsupport": "Windows目前不支持."
}
}
}
2 changes: 1 addition & 1 deletion storage/tail/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-node-tail",
"version": "0.0.1",
"version": "0.0.2",
"description": "A node to tail files for Node-RED",
"dependencies": {
"tail": "^2.0.0"
Expand Down

0 comments on commit 20b2eac

Please sign in to comment.