I think the file name was the problem. I renamed it to word.rx but not i always get ‘zaijian’ even when I type: “translate hi” or “translate hello”. Here is my skills log:
2017-08-29 08:08:04,893 - Skills - DEBUG - {"type": "recognizer_loop:utterance", "data": {"utterances": ["\"translate hello\""]}, "context": {"source": "webchat_:2", "user": "webchat 2", "mute": true}}
2017-08-29 08:08:04,899 - Skills - DEBUG - {"type": "skill.converse.request", "data": {"lang": "en-us", "skill_id": 33, "utterances": ["\"translate hello\""]}, "context": null}
2017-08-29 08:08:04,903 - Skills - DEBUG - {"type": "skill.converse.response", "data": {"skill_id": 33, "result": false}, "context": null}
2017-08-29 08:08:05,007 - Skills - DEBUG - {"type": "33:TranslateIntent", "data": {"confidence": 0.5, "Word": "hello \"", "target": null, "TranslateKeyword": "translate", "intent_type": "33:TranslateIntent", "__tags__": [{"end_token": 1, "start_token": 1, "from_context": false, "entities": [{"confidence": 1.0, "data": [["translate", "TranslateKeyword"]], "key": "translate", "match": "translate"}], "key": "translate", "match": "translate"}, {"end_token": 3, "start_token": 2, "confidence": 0.5, "from_context": false, "entities": [{"confidence": 0.5, "data": [["hello \"", "Word"]], "key": "hello \"", "match": "hello \""}], "key": "hello \"", "match": "hello \""}], "utterance": "\"translate hello\""}, "context": {"source": "server_skills", "user": "webchat 2", "mute": true, "target": null, "destinatary": "webchat_:2"}}
2017-08-29 08:08:05,008 - AgainSkill - INFO - Tracking last executed intent: 33:TranslateIntent
----------------------
hello "
----------------------
2017-08-29 08:08:05,009 - Display Manager (mycroft.client.enclosure) - DEBUG - Setting active skill to TranslateSkill
2017-08-29 08:08:05,015 - Skills - DEBUG - {"type": "intent.execution.start", "data": {"status": "start", "intent": "33:TranslateIntent"}, "context": null}
2017-08-29 08:08:05,016 - Skills - DEBUG - {"type": "speak", "data": {"expect_response": false, "utterance": "zaijian", "metadata": {"url": "http:://foo.com"}}, "context": {"source": "TranslateSkill", "destinatary": "webchat_:2", "more_speech": false, "target": null, "mute": true}}
2017-08-29 08:08:05,051 - Skills - DEBUG - {"type": "add_context", "data": {"word": "zaijian", "context": "Last_Speech"}, "context": null}
2017-08-29 08:08:05,053 - Skills - DEBUG - {"type": "add_context", "data": {"word": "http:://foo.com", "context": "url"}, "context": null}
2017-08-29 08:08:05,055 - Skills - DEBUG - {"type": "intent.execution.end", "data": {"status": "executed", "intent": "33:TranslateIntent"}, "context": null}
2017-08-29 08:08:05,057 - Skills - DEBUG - {"type": "enclosure.eyes.blink", "data": {"side": "b"}, "context": null}
2017-08-29 08:08:05,058 - Skills - DEBUG - {"type": "recognizer_loop:audio_output_start", "data": {}, "context": null}
2017-08-29 08:08:05,059 - mycroft.skills.media - DEBUG - Lower volume not implemented in Playback Control Skill
2017-08-29 08:08:05,059 - mycroft.skills.media - DEBUG - Lower volume not implemented in Playback Control Skill
2017-08-29 08:08:06,173 - Skills - DEBUG - {"type": "recognizer_loop:audio_output_end", "data": {}, "context": null}
2017-08-29 08:08:06,174 - mycroft.skills.media - DEBUG - Restore volume not implemented in Playback Control Skill
2017-08-29 08:08:06,176 - Skills - DEBUG - {"type": "enclosure.eyes.blink", "data": {"side": "b"}, "context": null}
2017-08-29 08:09:39,223 - Skills - DEBUG - {"type": "recognizer_loop:utterance", "data": {"utterances": ["\"translate hi\""]}, "context": {"source": "webchat_:2", "user": "webchat 2", "mute": true}}
2017-08-29 08:09:39,227 - Skills - DEBUG - {"type": "skill.converse.request", "data": {"lang": "en-us", "skill_id": 33, "utterances": ["\"translate hi\""]}, "context": null}
2017-08-29 08:09:39,232 - Skills - DEBUG - {"type": "skill.converse.response", "data": {"skill_id": 33, "result": false}, "context": null}
2017-08-29 08:09:39,332 - Skills - DEBUG - {"type": "33:TranslateIntent", "data": {"confidence": 0.5, "Word": "hi \"", "target": null, "TranslateKeyword": "translate", "intent_type": "33:TranslateIntent", "__tags__": [{"end_token": 1, "start_token": 1, "from_context": false, "entities": [{"confidence": 1.0, "data": [["translate", "TranslateKeyword"]], "key": "translate", "match": "translate"}], "key": "translate", "match": "translate"}, {"end_token": 3, "start_token": 2, "confidence": 0.5, "from_context": false, "entities": [{"confidence": 0.5, "data": [["hi \"", "Word"]], "key": "hi \"", "match": "hi \""}], "key": "hi \"", "match": "hi \""}], "utterance": "\"translate hi\""}, "context": {"source": "server_skills", "user": "webchat 2", "mute": true, "target": null, "destinatary": "webchat_:2"}}
2017-08-29 08:09:39,333 - AgainSkill - INFO - Tracking last executed intent: 33:TranslateIntent
----------------------
hi "
----------------------
2017-08-29 08:09:39,336 - Display Manager (mycroft.client.enclosure) - DEBUG - Setting active skill to TranslateSkill
2017-08-29 08:09:39,338 - Skills - DEBUG - {"type": "intent.execution.start", "data": {"status": "start", "intent": "33:TranslateIntent"}, "context": null}
2017-08-29 08:09:39,375 - Skills - DEBUG - {"type": "speak", "data": {"expect_response": false, "utterance": "zaijian", "metadata": {"url": "http:://foo.com"}}, "context": {"source": "TranslateSkill", "destinatary": "webchat_:2", "more_speech": false, "target": null, "mute": true}}
2017-08-29 08:09:39,376 - Skills - DEBUG - {"type": "add_context", "data": {"word": "zaijian", "context": "Last_Speech"}, "context": null}
2017-08-29 08:09:39,376 - Skills - DEBUG - {"type": "add_context", "data": {"word": "http:://foo.com", "context": "url"}, "context": null}
2017-08-29 08:09:39,377 - Skills - DEBUG - {"type": "intent.execution.end", "data": {"status": "executed", "intent": "33:TranslateIntent"}, "context": null}
2017-08-29 08:09:39,378 - Skills - DEBUG - {"type": "recognizer_loop:audio_output_start", "data": {}, "context": null}
2017-08-29 08:09:39,378 - mycroft.skills.media - DEBUG - Lower volume not implemented in Playback Control Skill
2017-08-29 08:09:39,378 - mycroft.skills.media - DEBUG - Lower volume not implemented in Playback Control Skill
2017-08-29 08:09:40,467 - Skills - DEBUG - {"type": "recognizer_loop:audio_output_end", "data": {}, "context": null}
2017-08-29 08:09:40,468 - mycroft.skills.media - DEBUG - Restore volume not implemented in Playback Control Skill