Permalink
Browse files

fixed common word filtering and build script

  • Loading branch information...
1 parent c219e80 commit 37c5299d731f1ad30b85bbd0cd8d51aa88dcdfdc @airportyh committed Jun 5, 2010
Showing with 21 additions and 21 deletions.
  1. +1 −1 build
  2. +20 −20 wordyclouds.js
View
@@ -16,7 +16,7 @@ def compress(file):
return quote(call('yui-compressor %s' % file))
files = [
- 'wordycloud.js',
+ 'wordyclouds.js',
'marklet.js'
]
View
@@ -1,24 +1,24 @@
var CommonWords = {}
CommonWords.english = "a about after again against all an another any and are as at\
-be being been before but by\
-can could\
-did do don't down\
-each\
-few from for\
-get got great\
-had has have he her here his him himself hers how\
-i if i'm in into is it it's\
-just\
-like\
-made me more most my\
-no not\
-of off on once one only or other our out over own\
-said she should so some such\
-than that the their them then there these they this those through to too\
-under until up\
-very\
-was wasn't we were we're what when where which while who why will with would wouldn't\
-you your".split(' ')
+ be being been before but by\
+ can could\
+ did do don't down\
+ each\
+ few from for\
+ get got great\
+ had has have he her here his him himself hers how\
+ i if i'm in into is it it's\
+ just\
+ like\
+ made me more most my\
+ no not\
+ of off on once one only or other our out over own\
+ said she should so some such\
+ than that the their them then there these they this those through to too\
+ under until up\
+ very\
+ was wasn't we were we're what when where which while who why will with would wouldn't\
+ you your".split(' ')
var ColorPalates = {}
ColorPalates.autumn =
@@ -58,7 +58,7 @@ function tokenize(text, commonWords){
return word.toLowerCase()
})
.filter(function(word){
- return !commonWords || commonWords.indexOf(word) == -1
+ return commonWords.indexOf(word) == -1
})
}

0 comments on commit 37c5299

Please sign in to comment.