# Environment¶

class corpustools.corpus.classes.lexicon.Environment(middle, position, lhs=None, rhs=None)[source]

Specific sequence of segments that was a match for an EnvironmentFilter

Parameters: middle : str Middle segment position : int Position of the middle segment in the word (to differentiate between repetitions of an environment in the same word lhs : list, optional Segments to the left of the middle segment rhs : list, optional Segments to the right of the middle segment

Methods

 __init__(middle, position[, lhs, rhs])