Skip to content

Commit

Permalink
Merge pull request watson-developer-cloud#46 from watson-developer-cl…
Browse files Browse the repository at this point in the history
…oud/stability

[IN PROGRESS DO NOT MERGE] change 'writing' to 'language'
  • Loading branch information
jzhang300 committed May 6, 2016
2 parents 45cb0bb + 398bd3c commit cb41258
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions public/js/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,23 +77,23 @@ function App(documentTones, sentences, thresholds, selectedSample) {
score: 0,
tone_id: 'Analytical',
tone_name: 'Analytical',
tone_category_id: 'writing_tone',
tone_category_name: 'Writing Tone'
tone_category_id: 'language_tone',
tone_category_name: 'Language Tone'
}, {
score: 0,
tone_id: 'Confident',
tone_name: 'Confident',
tone_category_id: 'writing_tone',
tone_category_name: 'Writing Tone'
tone_category_id: 'language_tone',
tone_category_name: 'Language Tone'
}, {
score: 0,
tone_id: 'Tentative',
tone_name: 'Tentative',
tone_category_id: 'writing_tone',
tone_category_name: 'Writing Tone'
tone_category_id: 'language_tone',
tone_category_name: 'Language Tone'
}],
category_id: 'writing_tone',
category_name: 'Writing Tone'
category_id: 'language_tone',
category_name: 'Language Tone'
}, {
tones: [{
score: 0,
Expand Down Expand Up @@ -361,7 +361,7 @@ function App(documentTones, sentences, thresholds, selectedSample) {
sample = {
'customer-call': getHighestTone('Emotion Tone'),
'email': getHighestTone('Social Tone'),
'corporate-announcement': getHighestTone('Writing Tone'),
'corporate-announcement': getHighestTone('Language Tone'),
'own-text': getHighestTone('Emotion Tone')
};

Expand Down
2 changes: 1 addition & 1 deletion public/js/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function allReady(thresholds, sampleText) {
function writingMap(item) {
return {
label: item.tone_name,
score: app.percentagify(item.score, 'Writing Tone')
score: app.percentagify(item.score, 'Language Tone')
};
}

Expand Down

0 comments on commit cb41258

Please sign in to comment.