Skip to content
Snippets Groups Projects
Select Git revision
  • 38205f47d14974d7d4f1fbd0a31dd0ff9c3fcc2c
  • master default protected
  • develop protected
  • cmake_boost_refactor
  • ubuntu_ci
  • mmtf
  • non-orthogonal-maps
  • no_boost_filesystem
  • data_viewer
  • 2.11.1
  • 2.11.0
  • 2.10.0
  • 2.9.3
  • 2.9.2
  • 2.9.1
  • 2.9.0
  • 2.8.0
  • 2.7.0
  • 2.6.1
  • 2.6.0
  • 2.6.0-rc4
  • 2.6.0-rc3
  • 2.6.0-rc2
  • 2.6.0-rc
  • 2.5.0
  • 2.5.0-rc2
  • 2.5.0-rc
  • 2.4.0
  • 2.4.0-rc2
29 results

torsion_impl.cc

Blame
  • searchtools.js 24.41 KiB
    /*
     * searchtools.js_t
     * ~~~~~~~~~~~~~~~~
     *
     * Sphinx JavaScript utilities for the full-text search.
     *
     * :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
     * :license: BSD, see LICENSE for details.
     *
     */
    
    
    /* Non-minified version JS is _stemmer.js if file is provided */ 
    /**
     * Porter Stemmer
     */
    var Stemmer = function() {
    
      var step2list = {
        ational: 'ate',
        tional: 'tion',
        enci: 'ence',
        anci: 'ance',
        izer: 'ize',
        bli: 'ble',
        alli: 'al',
        entli: 'ent',
        eli: 'e',
        ousli: 'ous',
        ization: 'ize',
        ation: 'ate',
        ator: 'ate',
        alism: 'al',
        iveness: 'ive',
        fulness: 'ful',
        ousness: 'ous',
        aliti: 'al',
        iviti: 'ive',
        biliti: 'ble',
        logi: 'log'
      };
    
      var step3list = {
        icate: 'ic',
        ative: '',
        alize: 'al',
        iciti: 'ic',
        ical: 'ic',
        ful: '',
        ness: ''
      };
    
      var c = "[^aeiou]";          // consonant
      var v = "[aeiouy]";          // vowel
      var C = c + "[^aeiouy]*";    // consonant sequence
      var V = v + "[aeiou]*";      // vowel sequence
    
      var mgr0 = "^(" + C + ")?" + V + C;                      // [C]VC... is m>0
      var meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$";    // [C]VC[V] is m=1
      var mgr1 = "^(" + C + ")?" + V + C + V + C;              // [C]VCVC... is m>1
      var s_v   = "^(" + C + ")?" + v;                         // vowel in stem
    
      this.stemWord = function (w) {
        var stem;
        var suffix;
        var firstch;
        var origword = w;
    
        if (w.length < 3)
          return w;