generateAndSetDictionary(str, minLength = 4, minFreq = 2, flag)
Generates a frequency-based dictionary and sets it as the current dictionary.
Returns: Dictionary object.
Example:
1compressor.generateAndSetDictionary("hello world hello world");2// Dictionary now set: { hello: '$a', world: '$b' }