GET FREE VERSION GET THE PRO VERSION

Plural Words Support

More about plugin plurals support and types of plural words.

In this article

Overview

Advanced Woo Search plugin supports plural words search by default. This means that no matter in what form a user writes a search word - singular or plural - the plugin will still show the needed search results.

Example: Customer search for Hoodies. Plugin will show all products that contain Hoodies or Hoodie words.

Searching using plural words

Searching using plural words

Types of plural words

There are special rules on how plural words are converted to their singular form. Some English words can't be converted to singular form at all, some words have irregular rules for converting to singular form.

Words that can't be converted to singular form

Words like 'series', 'species', 'chassis', 'clippers', 'debris', 'diabetes', 'equipment', 'gallows', 'graffiti', 'headquarters', 'information', 'innings', 'news', 'nexus', etc. can't be converted to singular forms and will be searched as is.

Words with irregular rules

Many words have irregular rules for converting to singular form. Here is some examples:

'criteria' => 'criterion'
'ganglions' => 'ganglion'
'loaves' => 'loaf'
'men' => 'man'
'monies' => 'money'
'potatoes' => 'potato'
'teeth' => 'tooth'
'geese' => 'goose'
'feet' => 'foot'

Such words are just hard coded in the plugin code and will be converted according to the rules if needed.

Regular words

All other words will be converted to singular form according to the rules. These rules state, for example, that if the word has ies in the end - it must be stripped.

So here is an examples of such rules implementation:

hoodies => hoodie
t-shirts => t-shirt