Skip to main content
Advanced Expressions
Garen DiBernardo avatar
Written by Garen DiBernardo
Updated over a year ago

This guide will walk you through on what Advanced Expressions are, and you can apply them.

What are Advanced Expressions?

Advanced Expressions allow you to:

  • Differentiate similar expressions, for example, "break" and "broken".

  • Combine 50/100 or 150 variations of keywords for example, "package", "parcel" and "pack" etc.

  • Match keywords such as "knee0012", "X of Y" and "iPhone 3".

Thanks to Expression editor, creating powerful key expressions is easy in Lumoa. The AI understands key expressions and will suggest new topics and key phrases accordingly.

Before you begin

A few things to note:

  • Please note that you can't put expressions in the "phrase" columns.

  • Please note that:

    • took (too long|ages) is incorrect

      • and took (too long)|ages is correct

  • Please use lower case letters "is" rather than "Is" when referring to fields in Excel as with 'is:number' or 'is:verb'.

Advanced Expressions Examples

  1. Please find this Excel document with examples of Advanced Expressions.

  2. See reference results of using the above example excel:

## categorizing: 

* 'Missing packet'
* ('Packet', 'Packet', 'Content missing')

* 'Lost packet'
* ('Packet', 'Packet', 'Content missing')

* 'Lost my packet'
* ('Packet', 'Packet', 'Content missing')

* 'Lost my blue broken packet'
* ('Packet', 'Packet', 'Content missing')

* 'Lost my 3 blue broken packets'
* ('Packet', 'Packet', 'Content missing')

* 'Lost few packets'
* ('Packet', 'Packet', 'Content missing')

* 'Missing parcel'
* ('Packet', 'Packet', 'Content missing')

* 'Lost parcel' * ('Packet', 'Packet', 'Content missing')
* 'didn't receive package'

* ('Delivery', 'Delivery', 'Not delivered')
* 'didn't receive' * ('Delivery', 'Delivery', 'Not delivered')

* 'Missing one packet'
* ('Packet', 'Packet', 'Content missing')

* 'Missing two packets'
* ('Packet', 'Packet', 'Content missing')

* 'Missing 3 packets'
* ('Packet', 'Packet', 'Content missing')

* 'Packet haven't come'
* ('Delivery', 'Delivery', 'Not delivered')

* 'Packet didn't come'
* ('Delivery', 'Delivery', 'Not delivered')

* 'Packet haven't arrived'
* ('Delivery', 'Delivery', 'Not delivered')

* 'Packet didn't arrive'
* ('Delivery', 'Delivery', 'Not delivered')

* 'packet late'
* ('Delivery', 'Delivery', 'Late')

* 'parcel is late'
* ('Delivery', 'Delivery', 'Late')

* 'box is very late'
* ('Delivery', 'Delivery', 'Late')

* 'it was supposed arrive by 24.8'
* ('Delivery', 'Delivery', 'Late')

* '1/3 packages were missing'
* ('Packet', 'Packet', 'Content missing')

* '1 of 2 packages is missing'
* ('Packet', 'Packet', 'Content missing')

* '2 out of 3 packages are missing'
* ('Packet', 'Packet', 'Content missing')

* 'it's easy'
* ('Easiness', 'Easiness', 'Easiness')

* 'difficult to navigate'
* ('Easiness', 'Easiness', 'Easiness')

* 'broken package'
* ('Delivery', 'Delivery', 'Broken package')

* 'have a break'
* ('Breaks', 'Breaks', 'Breaks')

* 'breaks are too short'
* ('Breaks', 'Breaks', 'Breaks')

* 'sarah was amazing'
* ('Staff', 'Staff', 'Staff')

* 'bob said hello'
* ('Staff', 'Staff', 'Staff')

* 'people were very professional'
* ('Staff', 'Staff', 'Staff')

* 'didn't receive sms'
* ('Sms', 'Sms', 'Sms')

E.g. The Packet / Packet / Content Missing topic expressions such as these:

(missing|lost) {package description}? {package}

Successfully categorizes the following feedback:

* 'Missing packet' 

* 'Lost packet'

* 'Lost my packet'

* 'Lost my blue broken packet'

* 'Lost my 3 blue broken packets'

* 'Lost few packets'

* 'Missing parcel'

* 'Lost parcel'

See table structure example:

Expression name

Expression syntax

Matching example

Not matching example

exact text field 
text:broken    
broken
BROKEN, Broken, bRokEn
lowercase text field
lowercase:broken
broken, Broken, BROKEN 
break
lemma field 
lemma:apple   
apple, apples, APPLES
banana
noun type
is:noun
'work' as in 'great work'
'work' as in 'does not work'
verb type
is:verb
'work' as in 'does not work'
'work' as in 'great work'
adjective type
is:adjective
'stable' as in 'stable app'
'stable' as in 'horse stable'
number type
is:number
2, 3, 100
two, three, hundred
date type
is:date
1.11.2022
1st may, 1/1/2022
email type
is:email
www.lumoa.me
address type
is:address
Puutie 1, Puutie 1 a 2
Puutie A, puutie 1, puutie 1 a 2
alternatives
blue banana|apple
blue banana, blue apple
banana, red apple, orange
optional
missing large? box
missing box, missing large box
missing banana box
kleene's star
so very* late
so late, so very very late
so banana late
reference
missing {packet-like}
missing package, missing packet
lost package, missing banana
phrase
"it's banana"
it's banana, it's bananas
its banana, it's orange
regular expression
`\\d+/\\d+`
1/2, 2/3, 4/12
one/two, 1.5/2, 1 / 2, 1/two
pipe
work > is:noun
'work' as in 'great work'
banana, work as in 'i work had'

Advanced Expressions AND, OR, and NOT

# categories: 

* General/General/General
* Speed/Speed/Service speed
* service AND slow

* Speed/Speed/Customer service speed
* customer service AND (slow OR fast)

* Speed/Speed/App speed
* app AND slow

* Speed/Speed/Speed general
* slow AND NOT (service OR app OR customer service)

* Bugs/Bugs/iOS
* bugs AND tags.platform='ios'

* Bugs/Bugs/Android
* bugs AND tags.platform='android'

* Bugs/Bugs/Bugs general
* bugs AND tags.platform=null

* Bugs/Bugs/Other platforms
* bugs AND NOT (tags.platform='android' OR tags.platform='ios' OR tags.platform=null)

* Question/Question/Customer
* {question word} AND tags.cnv_actor='customer'

* Question/Question/Agent
* {question word} AND tags.cnv_actor='agent'

* Question/Question/First
* {question word} AND tags.cnv_index=1

* Question/Question/Speed
* {question word} AND {speed}

* Number/Number/Number
* tags.number=-1.5

* Nothing/Nothing/Nothing
* translatedComment=''

* Greetings/Greetings/Finnish
* comment='Terve'

* Sentiment/Sentiment/Negative
* sentimentCategory='Negative'

* Highlight/Highlight/Highlight
* isHighlight=true

* Sentence match/Sentence match/Sentence match
* sentenceText='Sentence match'

Then the categorized texts:

* 'good!' 
* General/General/General

* 'app is slow'
* Speed/Speed/App speed

* 'slow app'
* Speed/Speed/App speed

* 'service is slow'
* Speed/Speed/Service speed

* 'slow service'
* Speed/Speed/Service speed

* 'customer service is fast'
* Speed/Speed/Customer service speed

* 'slow customer service'
* Speed/Speed/Customer service speed

* 'it's slow'
* Speed/Speed/Speed general

* 'both app and service are slow'
* Speed/Speed/Service speed

* Speed/Speed/App speed
* 'both app and service are slow'

* Speed/Speed/Service speed
* Speed/Speed/App speed

* 'bugs' (tags.platform=ios)
* Bugs/Bugs/iOS

* 'bugs' (tags.platform=android)
* Bugs/Bugs/Android

* 'bugs' (tags.platform=windows)
* Bugs/Bugs/Other platforms

* 'bugs' (tags.platform=None)
* Bugs/Bugs/Bugs general

* 'How can I order a sim card?' (tags.cnv_actor=customer)
* Question/Question/Customer

* 'What's your name?' (tags.cnv_actor=agent)
* Question/Question/Agent

* 'What's this place?' (tags.cnv_index=1)
* Question/Question/First

* 'Why the app is so slow?'
* Speed/Speed/App speed

* Question/Question/Speed
* '' (tags.number=-1.5)

* Number/Number/Number
* '' (translatedComment=)

* Nothing/Nothing/Nothing
* '' (comment=Terve)
* Greetings/Greetings/Finnish

* 'This is a highlight' (isHighlight=True)
* Highlight/Highlight/Highlight

* 'This is negative sentiment' (sentimentCategory=Negative)
* Sentiment/Sentiment/Negative

* 'Sentence match' (sentenceText=Sentence match)
* Sentence match/Sentence match/Sentence match
Expression name
Expression syntax
Matching example
Not matching example
AND expression
slow AND app
App is slow, slow app
app, slow
OR expression
(slow OR fast) AND app
app is fast, slow app
blue app, fast slow
NOT expression
slow AND NOT app
service is slow, slow delivery
slow app, app is slow
Tag property
tags.platform=ios
(feedback having ios tag)
(feedback not having ios tag)
Comment property
comment='-'
-
--, -me, hello
Translated comment
translatedComment=''
(empty comment)
a, hello, anything
Sentiment Category
sentenceCategory='Negative'
Bad, Horrible, Poor
Great!, ok, banana
Sentence Text
sentenceText='hi'
hi
h, hi you, hi!, HI
Did this answer your question?