Suspicious comma suggested by comma grammar checking software [duplicate]

I was using a grammar correction software to review an article. The software suggests to insert a comma in the following text:

In each part, the warping function creates feature maps of the input data and the wavelet filters extract higher frequency information from the input and propagate it forward.

The comma is suggested between and and data in data and the wavelet. I was not sure why it is suggested, if it is a correct one, and what type of comma it is.


Solution 1:

I agree with the software. The comma helps you avoid a "garden path" parse of the sentence.

As written, you'll start parsing the main clause as

the warping function creates feature maps of the input data and the wavelet filters

so it seems like "wavelet filters" are also included in the feature maps. Then you encounter the verb "extract", which doesn't fit this parse, so you have to backtrack to realize that "the wavelet filters" is the subject of a new independent clause.

Inserting a comma before "and" makes it clear that this is not a list of the contents of the feature maps.