Skip to content

Files

Latest commit

 

History

History
17 lines (10 loc) · 582 Bytes

no-complex-selectors.md

File metadata and controls

17 lines (10 loc) · 582 Bytes

Pattern: Use of complex selector

Issue: -

Description

Make sure a sentence is not too complex. Complexity is determined by how many strings are produced when we try to flatten the sentence given its selectors. For example:

I have {count, plural, one{a dog} other{many dogs}}

has the complexity of 2 because flattening the plural selector results in 2 sentences: I have a dog & I have many dogs. Default complexity limit is 20.

Further Reading