Find where your new business can be built in San Mateo.
select(keyword,K) & ~empty(K) ==> keyword(K)
select(keyword,K) & keyword(X) ==> ~keyword(X)
click(browseuse) & keyword(X) ==> ~keyword(X)
empty(X) :- matches(X,"^\s*$")
somekeyword :- keyword(K)
value(keyword,K) :- keyword(K)
attribute(keyword,class,X) :- evaluate (
if (
somekeyword,
"search hascontent",
true,
"search"
), X
)
attribute(searchbusiness,href,X) :- evaluate (
if (
somekeyword,
stringappend("/business/sanmateo/search?keyword=",choose(K,keyword(K))),
true,
""
), X
)
attribute(searchbusiness,onclick,X) :- evaluate (
if (
somekeyword,
"return true;",
true,
"document.querySelector('.search').focus(); return false;"
), X
)
attribute(browseuse,href,"/business/sanmateo/search")
attribute(keyword,placeholder,"Enter your business type")
attribute(page,class,X) :- evaluate(
if(
cat_party,
"cat-party",
true,
""
), X
)
cat_party :- value(keyword,"10 cats")