Skip to content

Commit 3cbd0af

Browse files
author
Ace Nassri
committed
Fix failing tests
1 parent 55e5daf commit 3cbd0af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

language/analyze.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function analyzeSyntaxOfText (text) {
168168

169169
console.log('Parts of speech:');
170170
syntax.forEach((part) => {
171-
console.log(`${part.tag}:\t ${part.text}`);
171+
console.log(`${part.partOfSpeech.tag}:\t ${part.text.content}`);
172172
});
173173
})
174174
.catch((err) => {
@@ -206,7 +206,7 @@ function analyzeSyntaxInFile (bucketName, fileName) {
206206

207207
console.log('Parts of speech:');
208208
syntax.forEach((part) => {
209-
console.log(`${part.tag}:\t ${part.text}`);
209+
console.log(`${part.partOfSpeech.tag}:\t ${part.text.content}`);
210210
});
211211
})
212212
.catch((err) => {

0 commit comments

Comments
 (0)