ramDir = RAMDirectory() writer = IndexWriter(ramDir, SnowballAnalyzer("Porter",british_variances), True)