Skip to content
Permalink
Branch: master
Commits on Jun 4, 2017
  1. Merge pull request #39 from bf4/patch-1

    Peter Cooper
    Peter Cooper committed Jun 4, 2017
    Add license to gemspec, is MIT
Commits on Apr 19, 2016
  1. Add license to gemspec, is MIT

    bf4 committed Apr 19, 2016
    Fixes #19
Commits on Jan 28, 2016
  1. Merge pull request #32 from andrewpcone/example-require-patch

    Peter Cooper
    Peter Cooper committed Jan 28, 2016
    correct require path
  2. Merge pull request #35 from academia-edu/memory-efficiency

    Peter Cooper
    Peter Cooper committed Jan 28, 2016
    Minor memory efficiency improvement for Ruby 2.1+
Commits on Oct 15, 2015
  1. Minor memory efficiency improvement for Ruby 2.1+

    David Judd
    David Judd committed Oct 15, 2015
Commits on Mar 4, 2015
  1. correct require path

    andrewpcone committed Mar 4, 2015
    the example as currently written does not work in the latest gem; this fixes
Commits on Jan 16, 2015
  1. Merge pull request #31 from daniels/optionally_extend_string

    Peter Cooper
    Peter Cooper committed Jan 16, 2015
    Allow usage without extending String
Commits on Jan 15, 2015
Commits on Oct 22, 2014
  1. Merge pull request #30 from boazadato/master

    Peter Cooper
    Peter Cooper committed Oct 22, 2014
    only init WhatLanguage.@@DaTa if empty
  2. bump version

    boazadato committed Oct 22, 2014
Commits on Oct 21, 2014
  1. Merge pull request #29 from nicolasblanco/iso-codes

    Peter Cooper
    Peter Cooper committed Oct 21, 2014
    Adds ISO codes and language_iso method
Commits on Mar 14, 2014
  1. Merge pull request #26 from p-lambert/unicode-lowercase

    peterc committed Mar 14, 2014
    UTF8 strings lowercase conversion
Commits on Mar 7, 2014
Commits on Mar 6, 2014
Commits on Feb 18, 2014
  1. Merge pull request #23 from johnjohndoe/patch-1

    peterc committed Feb 18, 2014
    Enable syntax highlighting for Ruby snippets.
Commits on Feb 17, 2014
Commits on Nov 5, 2013
  1. Merge pull request #21 from preadly/show_languages

    peterc committed Nov 5, 2013
    Languages method
  2. Merge pull request #20 from preadly/danish_language_added

    peterc committed Nov 5, 2013
    Added Danish
  3. Languages method

    lasseebert committed Nov 5, 2013
Commits on Nov 4, 2013
  1. Added Danish

    lasseebert committed Nov 4, 2013
Commits on Oct 5, 2013
  1. Fixed test clash

    peterc committed Oct 5, 2013
  2. Fixed test

    peterc committed Oct 5, 2013
Commits on Oct 3, 2013
  1. Merge pull request #17 from salimane/pr_small_speedup

    peterc committed Oct 3, 2013
    speed up process_text a bit
  2. speed up process text a bit

    salimane committed Sep 30, 2013
Commits on Sep 30, 2013
  1. Merge pull request #16 from platzhirsch/feature/language-selection

    peterc committed Sep 30, 2013
    Add language selection to narrow detection scope
  2. Change the default case from none to all languages

    konradreiche committed Sep 30, 2013
    It would be rather confusing, if the default constructor creates an
    object which cannot detect any languages because none are selected.
    Thus, the default case is changed from none to all languages.
    
    Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Commits on Sep 28, 2013
  1. Extend README

    konradreiche committed Sep 28, 2013
    I have added the new configuration option to the README.
    
    Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
  2. Add unit tests to validate further configurations

    konradreiche committed Sep 28, 2013
    Just to make sure that different configurations play nicely along I have
    added further unit tests. If neither a known language, nor :all is used
    the detected language will be null.
    
    Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
  3. Add language selection to narrow detection scope

    konradreiche committed Sep 28, 2013
    So far all the language data was used when detecting the language of an
    input. If the corpus is large enough, this is definitely feasible. The
    input, however, is sometimes short consisting only of few words.
    
    To avoid false detections the constructor should be used to narrow the
    scope of possible languages. An instance variable @selection is used.
    
    In the method for processing the text this variable is used. Unless the
    symbol :all was passed, the intersection of all the possible languages
    and the selection is created.
    
    A simple unit test was added to test this behavior. In this case the
    input consists of three German articles. Without the language selection
    Russian is detected as language. With the language selection, German is
    detected.
    
    Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Older
You can’t perform that action at this time.