emonakhova has quit [Remote host closed the connection]
heru has joined #cinch
heru has quit [Ping timeout: 252 seconds]
heru has joined #cinch
heru has quit [Ping timeout: 240 seconds]
<rails>
gonna teach gf ruby
<rails>
wish meluck
<dominikh>
gl, fool
postmodern has quit [Quit: Leaving]
<catepillar>
lol
heru has joined #cinch
nkr has joined #cinch
Azure is now known as __END__
<CM-Punk>
Okay, if I have a matcher that provides arguments for a category that could be up to two words, and terms that could be an unspecified number of words...what would it look like?
<onewheelskyward>
Is the word separator always a space?
<leftylink>
but wait. if I have a b c, is the category "a b" and the term "c", or the category "a" and term "b c"?
<leftylink>
how are you resolving the ambiguity, basically, is my question
<CM-Punk>
That would be where I'm stuck, leftylink
<onewheelskyward>
Categories are known.
<leftylink>
well that's a decision you have to make
<onewheelskyward>
I'd pull in all the variables and check the first two for category status.
<onewheelskyward>
If categories and terms overlap, I'd rethink the taxonomy.
<leftylink>
sounds reasonable
<onewheelskyward>
Or perhaps perform both searches, depending on the data set.
<CM-Punk>
I need to be able to allow users to search by category, or category and subcategory and some of the categories and subcategories are multiple words
<leftylink>
just curious-- is the set of categories expected to stay constant? if not, how frequently changing? what is the story here
<leftylink>
depending on the answer, some different things may be necessary
<leftylink>
if known unchanging, basically can build the regex at bot-start-time
<leftylink>
instead of dynamically at match-time
<CM-Punk>
It's changed recently, so other than that I don't know the answer to that question
<CM-Punk>
So like, with the function at line 28, if I change the join to "|" could I pass that into the matcher regex?