Skip to content

Commit

Permalink
Fixed Language Bug (0.0.7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Möller committed Mar 18, 2015
1 parent dc5f9d3 commit 284fd0b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .versions
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ ejson@1.0.6
geojson-utils@1.0.3
id-map@1.0.3
json@1.0.3
local-test:nefiltari:yaki@0.0.5
local-test:nefiltari:yaki@0.0.6
logging@1.0.7
meteor@1.1.5
minimongo@1.0.7
mongo@1.1.0
nefiltari:yaki@0.0.5
nefiltari:yaki@0.0.6
ordered-dict@1.0.3
random@1.0.3
retry@1.0.3
Expand Down
2 changes: 1 addition & 1 deletion lib/yaki.coffee.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The `context` in an optional object that have follwoing keys:
dictionary = new Array
dictionary.context = context or {}
lang = dictionary.context.language or 'en'
lang = if _.contains(Vocabulary.support, lang) then lang or 'en'
lang = if _.contains(Vocabulary.support, lang) then lang else 'en'
dictionary.context.language = lang
dictionary.split = Yaki.split
dictionary.clean = Yaki.clean
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
name: 'nefiltari:yaki',
version: '0.0.6',
version: '0.0.7',
summary: 'Yaki can capture relevant tags from any bunch of text.',
git: 'https://github.com/nefiltari/yaki.git',
documentation: 'README.md'
Expand Down
4 changes: 3 additions & 1 deletion test.coffee.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ To test k gram stemming and to find similar words.
text = """
3. Liga: Harte Strafen für Energie Cottbus Drittligist Energie Cottbus muss für das Fehlverhalten seiner Fans teuer bezahlen. Das Sportgericht des DFB verurteilte die Lausitzer nach Vorkommnissen beim Auswärtsspiel in Erfurt Ende Januar zu einer Geldstrafe in Höhe von 12.000 Euro und einem Teilausschluss auf Bewährung.
"""
result = Yaki(text, {language: 'de'}).extract()
result = Yaki(text, {language: 'fr'}).extract()
console.log _.map result, (elem) -> elem
# Outputs

## View Similarities
Expand Down

0 comments on commit 284fd0b

Please sign in to comment.