diff --git a/ss2013/1_Web Mining/Uebungen/1_Uebung/keaddon/resources/jid0-gn3ivo79cgfs9k4p3lxdo7tpfa4-keaddon-lib/student.js b/ss2013/1_Web Mining/Uebungen/1_Uebung/keaddon/resources/jid0-gn3ivo79cgfs9k4p3lxdo7tpfa4-keaddon-lib/student.js index 167c8c0e..e0af1625 100644 --- a/ss2013/1_Web Mining/Uebungen/1_Uebung/keaddon/resources/jid0-gn3ivo79cgfs9k4p3lxdo7tpfa4-keaddon-lib/student.js +++ b/ss2013/1_Web Mining/Uebungen/1_Uebung/keaddon/resources/jid0-gn3ivo79cgfs9k4p3lxdo7tpfa4-keaddon-lib/student.js @@ -30,10 +30,6 @@ function student(text) { } - console.log("german: " + deWordCount); - console.log("english: " + enWordCount); - console.log("french: " + frWordCount); - // return specific language if (deWordCount >= enWordCount && deWordCount >= frWordCount) { return lang.german; diff --git a/ss2013/1_Web Mining/Uebungen/1_Uebung/keaddon/resources/jid0-gn3ivo79cgfs9k4p3lxdo7tpfa4-keaddon-lib/utility.js b/ss2013/1_Web Mining/Uebungen/1_Uebung/keaddon/resources/jid0-gn3ivo79cgfs9k4p3lxdo7tpfa4-keaddon-lib/utility.js index fb1e73a0..673053eb 100644 --- a/ss2013/1_Web Mining/Uebungen/1_Uebung/keaddon/resources/jid0-gn3ivo79cgfs9k4p3lxdo7tpfa4-keaddon-lib/utility.js +++ b/ss2013/1_Web Mining/Uebungen/1_Uebung/keaddon/resources/jid0-gn3ivo79cgfs9k4p3lxdo7tpfa4-keaddon-lib/utility.js @@ -10,9 +10,9 @@ function tokenize(text) { } -function arrayContains(a, obj) { - for (var i = 0; i < a.length; i++) { - if (a[i] === obj) { +function arrayContains(array, element) { + for (var i = 0; i < array.length; i++) { + if (array[i] === element) { return true; } } diff --git a/ss2013/1_Web Mining/Uebungen/1_Uebung/keaddonWithHeuristic.xpi b/ss2013/1_Web Mining/Uebungen/1_Uebung/keaddonWithHeuristic.xpi index 041c9e25..06ea59fa 100644 Binary files a/ss2013/1_Web Mining/Uebungen/1_Uebung/keaddonWithHeuristic.xpi and b/ss2013/1_Web Mining/Uebungen/1_Uebung/keaddonWithHeuristic.xpi differ