class_docstr: Class contains implementation of Porter stemming algorithm.
  
  Attributes
  --------
  b : str
      Buffer holding a word to be stemmed. The letters are in b[0], b[1] ... ending at b[`k`].
  k : int
      Readjusted downwards as the stemming progresses.
  j : int
      Word length.
class_docstr_tok: ["Class","contains","implementation","of","Porter","stemming","algorithm",".","Attributes","--","--","--","--","b",":","str","Buffer","holding","a","word","to","be","stemmed",".","The","letters","are","in","b","[","0","]",",","b","[","1","]","...","ending","at","b","[","`","k","`","]",".","k",":","int","Readjusted","downwards","as","the","stemming","progresses",".","j",":","int","Word","length","."]
docstr: Check if b[j - 2: j + 1] makes the (consonant, vowel, consonant) pattern and also
  if the second 'c' is not 'w', 'x' or 'y'. This is used when trying to restore an 'e' at the end of a short word,
  e.g. cav(e), lov(e), hop(e), crim(e), but snow, box, tray.
  
  Parameters
  ----------
  i : int
      Index for `b`
  
  Returns
  -------
  bool
  
  Examples
  --------
  .. sourcecode:: pycon
  
      >>> from gensim.parsing.porter import PorterStemmer
      >>> p = PorterStemmer()
      >>> p.b = "lib"
      >>> p.j = 2
      >>> p._cvc(2)
      True
      >>> p.b = "dll"
      >>> p.j = 2
      >>> p._cvc(2)
      False
      >>> p.b = "wow"
      >>> p.j = 2
      >>> p._cvc(2)
      False
docstr_tok: ["Check","if","b","[","j","-","2",":","j","+","1","]","makes","the","(","consonant",",","vowel",",","consonant",")","pattern","and","also","if","the","second","'","c","'","is","not","'","w","'",",","'","x","'","or","'","y","'",".","This","is","used","when","trying","to","restore","an","'","e","'","at","the","end","of","a","short","word",",","e.g",".","cav","(","e",")",",","lov","(","e",")",",","hop","(","e",")",",","crim","(","e",")",",","but","snow",",","box",",","tray",".","Parameters","--","--","--","--","--","i",":","int","Index","for","`","b","`","Returns","--","--","--","-","bool","Examples","--","--","--","--","..","sourcecode",":",":","pycon",">",">",">","from","gensim.parsing.porter","import","PorterStemmer",">",">",">","p","=","PorterStemmer","(",")",">",">",">","p.b","=","``","lib","''",">",">",">","p.j","=","2",">",">",">","p._cvc","(","2",")","True",">",">",">","p.b","=","``","dll","''",">",">",">","p.j","=","2",">",">",">","p._cvc","(","2",")","False",">",">",">","p.b","=","``","wow","''",">",">",">","p.j","=","2",">",">",">","p._cvc","(","2",")","False"]
code: def _cvc(self, i):
      """Check if b[j - 2: j + 1] makes the (consonant, vowel, consonant) pattern and also
      if the second 'c' is not 'w', 'x' or 'y'. This is used when trying to restore an 'e' at the end of a short word,
      e.g. cav(e), lov(e), hop(e), crim(e), but snow, box, tray.
  
      Parameters
      ----------
      i : int
          Index for `b`
  
      Returns
      -------
      bool
  
      Examples
      --------
      .. sourcecode:: pycon
  
          >>> from gensim.parsing.porter import PorterStemmer
          >>> p = PorterStemmer()
          >>> p.b = "lib"
          >>> p.j = 2
          >>> p._cvc(2)
          True
          >>> p.b = "dll"
          >>> p.j = 2
          >>> p._cvc(2)
          False
          >>> p.b = "wow"
          >>> p.j = 2
          >>> p._cvc(2)
          False
  
      """
      if (
          i < 2
          or not self._cons(i)
          or self._cons(i - 1)
          or not self._cons(i - 2)
      ):
          return False
      return self.b[i] not in "wxy"
  
file_path: gensim/gensim/parsing/porter.py
label_desc: Use image node_id 6 for calling the PorterStemmer obj's underlying member method code with example usage: obj._cvc(i) and returns: unknown, False