SF.Snowball.Ext.EnglishStemmer.r_Step_2 C# (CSharp) Method

r_Step_2() private method

private r_Step_2 ( ) : bool
return bool
		private bool r_Step_2()
		{
			int among_var;
			// (, line 88
			// [, line 89
			ket = cursor;
			// substring, line 89
			among_var = find_among_b(a_4, 24);
			if (among_var == 0)
			{
				return false;
			}
			// ], line 89
			bra = cursor;
			// call R1, line 89
			if (!r_R1())
			{
				return false;
			}
			switch (among_var)
			{
				
				case 0: 
					return false;
				
				case 1: 
					// (, line 90
					// <-, line 90
					slice_from("tion");
					break;
				
				case 2: 
					// (, line 91
					// <-, line 91
					slice_from("ence");
					break;
				
				case 3: 
					// (, line 92
					// <-, line 92
					slice_from("ance");
					break;
				
				case 4: 
					// (, line 93
					// <-, line 93
					slice_from("able");
					break;
				
				case 5: 
					// (, line 94
					// <-, line 94
					slice_from("ent");
					break;
				
				case 6: 
					// (, line 96
					// <-, line 96
					slice_from("ize");
					break;
				
				case 7: 
					// (, line 98
					// <-, line 98
					slice_from("ate");
					break;
				
				case 8: 
					// (, line 100
					// <-, line 100
					slice_from("al");
					break;
				
				case 9: 
					// (, line 101
					// <-, line 101
					slice_from("ful");
					break;
				
				case 10: 
					// (, line 103
					// <-, line 103
					slice_from("ous");
					break;
				
				case 11: 
					// (, line 105
					// <-, line 105
					slice_from("ive");
					break;
				
				case 12: 
					// (, line 107
					// <-, line 107
					slice_from("ble");
					break;
				
				case 13: 
					// (, line 108
					// literal, line 108
					if (!(eq_s_b(1, "l")))
					{
						return false;
					}
					// <-, line 108
					slice_from("og");
					break;
				
				case 14: 
					// (, line 109
					// <-, line 109
					slice_from("ful");
					break;
				
				case 15: 
					// (, line 110
					// <-, line 110
					slice_from("less");
					break;
				
				case 16: 
					// (, line 111
					if (!(in_grouping_b(g_valid_LI, 99, 116)))
					{
						return false;
					}
					// delete, line 111
					slice_del();
					break;
				}
			return true;
		}