This is an automated email from the ASF dual-hosted git repository.

aradzinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 1a48085  Update intent-matching.html
1a48085 is described below

commit 1a480853039c1cb46d7bb03d5de434ceb786c78a
Author: Aaron Radzinzski <[email protected]>
AuthorDate: Fri Apr 9 11:14:06 2021 -0700

    Update intent-matching.html
---
 intent-matching.html | 238 +++++++++++++++++++++++++++++----------------------
 1 file changed, 137 insertions(+), 101 deletions(-)

diff --git a/intent-matching.html b/intent-matching.html
index 2dd5920..d52725e 100644
--- a/intent-matching.html
+++ b/intent-matching.html
@@ -494,25 +494,41 @@ id: intent_matching
             and using that metadata in the IDL expressions.
         </p>
         <p>
-            <b>String Functions:</b>
+            IDL functions can be organized into the following groups:
         </p>
-        <table class="gradient-table">
-            <thead>
-            <tr>
-                <th>Function</th>
-                <th>Description</th>
-                <th>Example</th>
-            </tr>
-            </thead>
-            <tbody>
-                <tr>
-                    <td>
-                        <code><b>length</b>(p: {String|List|Map}) ⇒ 
Int</code><br>
-                        <code><b>count</b>(p: {String|List|Map}) ⇒ 
Int</code><br>
-                        <code><b>size</b>(p: {String|List|Map}) ⇒ Int</code>
-                    </td>
-                    <td>Returns size or length of the given string, list or 
map.</td>
-                    <td>
+        <nav>
+            <div class="nav nav-tabs" role="tablist">
+                <a class="nav-item nav-link active" data-toggle="tab" 
href="#fn_text" role="tab">Text</a>
+                <a class="nav-item nav-link" data-toggle="tab" href="#fn_math" 
role="tab">Math</a>
+                <a class="nav-item nav-link" data-toggle="tab" 
href="#fn_collection" role="tab">Collection</a>
+                <a class="nav-item nav-link" data-toggle="tab" 
href="#fn_token" role="tab">Token</a>
+                <a class="nav-item nav-link" data-toggle="tab" 
href="#fn_metadata" role="tab">Metadata</a>
+                <a class="nav-item nav-link" data-toggle="tab" 
href="#fn_datetime" role="tab">Date <span class="amp">&amp;</span> Time</a>
+                <a class="nav-item nav-link" data-toggle="tab" href="#fn_req" 
role="tab">Request</a>
+                <a class="nav-item nav-link" data-toggle="tab" href="#fn_user" 
role="tab">User</a>
+                <a class="nav-item nav-link" data-toggle="tab" 
href="#fn_company" role="tab">Company</a>
+                <a class="nav-item nav-link" data-toggle="tab" 
href="#fn_other" role="tab">Other</a>
+            </div>
+        </nav>
+        <div class="tab-content">
+            <div class="tab-pane fade show active" id="fn_text" 
role="tabpanel">
+                <table class="gradient-table">
+                    <thead>
+                    <tr>
+                        <th>Function</th>
+                        <th>Description</th>
+                        <th>Example</th>
+                    </tr>
+                    </thead>
+                    <tbody>
+                    <tr>
+                        <td>
+                            <code><b>length</b>(p: {String|List|Map}) ⇒ 
Int</code><br>
+                            <code><b>count</b>(p: {String|List|Map}) ⇒ 
Int</code><br>
+                            <code><b>size</b>(p: {String|List|Map}) ⇒ 
Int</code>
+                        </td>
+                        <td>Returns size or length of the given string, list 
or map.</td>
+                        <td>
                         <pre class="brush:idl">
                             // Result: 9
                             length("some text")
@@ -520,87 +536,87 @@ id: intent_matching
                             // Result: 3
                             size(list(1, 2, 3))
                         </pre>
-                    </td>
-                </tr>
-                <tr>
-                    <td>
-                        <code><b>trim</b>(p: String) ⇒ String</code><br>
-                        <code><b>strip</b>(p: String) ⇒ String</code>
-                    </td>
-                    <td>Calls <a target="javadoc" 
href="https://docs.oracle.com/en/java/javase/15/docs/api/java.base/java/lang/String.html#trim()"><code>String.trim()</code></a>
 function on given parameter and returns its result.</td>
-                    <td>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td>
+                            <code><b>trim</b>(p: String) ⇒ String</code><br>
+                            <code><b>strip</b>(p: String) ⇒ String</code>
+                        </td>
+                        <td>Calls <a target="javadoc" 
href="https://docs.oracle.com/en/java/javase/15/docs/api/java.base/java/lang/String.html#trim()"><code>String.trim()</code></a>
 function on given parameter and returns its result.</td>
+                        <td>
                         <pre class="brush:idl">
                             // Result: "text"
                             trim(" text ")
                         </pre>
-                    </td>
-                </tr>
-                <tr>
-                    <td>
-                        <code><b>uppercase</b>(p: String) ⇒ String</code>
-                    </td>
-                    <td>Calls <a target="javadoc" 
href="https://docs.oracle.com/en/java/javase/15/docs/api/java.base/java/lang/String.html#toUpperCase()"><code>String.toUpperCase()</code></a>
 function on given parameter and returns its result.</td>
-                    <td>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td>
+                            <code><b>uppercase</b>(p: String) ⇒ String</code>
+                        </td>
+                        <td>Calls <a target="javadoc" 
href="https://docs.oracle.com/en/java/javase/15/docs/api/java.base/java/lang/String.html#toUpperCase()"><code>String.toUpperCase()</code></a>
 function on given parameter and returns its result.</td>
+                        <td>
                         <pre class="brush:idl">
                             // Result: "TEXT"
                             uppercase("text")
                         </pre>
-                    </td>
-                </tr>
-                <tr>
-                    <td>
-                        <code><b>lowercase</b>(p: String) ⇒ String</code>
-                    </td>
-                    <td>Calls <a target="javadoc" 
href="https://docs.oracle.com/en/java/javase/15/docs/api/java.base/java/lang/String.html#toLowerCase()"><code>String.toLowerCase()</code></a>
 function on given parameter and returns its result.</td>
-                    <td>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td>
+                            <code><b>lowercase</b>(p: String) ⇒ String</code>
+                        </td>
+                        <td>Calls <a target="javadoc" 
href="https://docs.oracle.com/en/java/javase/15/docs/api/java.base/java/lang/String.html#toLowerCase()"><code>String.toLowerCase()</code></a>
 function on given parameter and returns its result.</td>
+                        <td>
                         <pre class="brush:idl">
                             // Result: "text"
                             lowercase("TeXt")
                         </pre>
-                    </td>
-                </tr>
-                <tr>
-                    <td>
-                        <code><b>is_alpha</b>(p: String) ⇒ Boolean</code>
-                    </td>
-                    <td>Calls <a target="asf" 
href="http://commons.apache.org/";>Apache Commons</a> <a target="javadoc" 
href="http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#isAlpha-java.lang.CharSequence-";><code>StringUtils.isAlpha()</code></a>
 function on given parameter and returns its result.</td>
-                    <td>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td>
+                            <code><b>is_alpha</b>(p: String) ⇒ Boolean</code>
+                        </td>
+                        <td>Calls <a target="asf" 
href="http://commons.apache.org/";>Apache Commons</a> <a target="javadoc" 
href="http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#isAlpha-java.lang.CharSequence-";><code>StringUtils.isAlpha()</code></a>
 function on given parameter and returns its result.</td>
+                        <td>
                         <pre class="brush:idl">
                             // Result: true
                             is_alpha("text")
                         </pre>
-                    </td>
-                </tr>
-                <tr>
-                    <td>
-                        <code><b>is_alphanum</b>(p: String) ⇒ Boolean</code>
-                    </td>
-                    <td>Calls <a target="asf" 
href="http://commons.apache.org/";>Apache Commons</a> <a target="javadoc" 
href="http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#isAlphanumeric-java.lang.CharSequence-";><code>StringUtils.isAlphanumeric()</code></a>
 function on given parameter and returns its result.</td>
-                    <td>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td>
+                            <code><b>is_alphanum</b>(p: String) ⇒ 
Boolean</code>
+                        </td>
+                        <td>Calls <a target="asf" 
href="http://commons.apache.org/";>Apache Commons</a> <a target="javadoc" 
href="http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#isAlphanumeric-java.lang.CharSequence-";><code>StringUtils.isAlphanumeric()</code></a>
 function on given parameter and returns its result.</td>
+                        <td>
                         <pre class="brush:idl">
                             // Result: true
                             is_alphanum("text123")
                         </pre>
-                    </td>
-                </tr>
-                <tr>
-                    <td>
-                        <code><b>is_whitespace</b>(p: String) ⇒ Boolean</code>
-                    </td>
-                    <td>Calls <a target="asf" 
href="http://commons.apache.org/";>Apache Commons</a> <a target="javadoc" 
href="http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#isWhitespace-java.lang.CharSequence-";><code>StringUtils.isWhitespace()</code></a>
 function on given parameter and returns its result.</td>
-                    <td>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td>
+                            <code><b>is_whitespace</b>(p: String) ⇒ 
Boolean</code>
+                        </td>
+                        <td>Calls <a target="asf" 
href="http://commons.apache.org/";>Apache Commons</a> <a target="javadoc" 
href="http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#isWhitespace-java.lang.CharSequence-";><code>StringUtils.isWhitespace()</code></a>
 function on given parameter and returns its result.</td>
+                        <td>
                         <pre class="brush:idl">
                             // Result: true
                             is_whitespace("  ")
                         </pre>
-                    </td>
-                </tr>
-                <tr>
-                    <td>
-                        <code><b>is_num</b>(p: String) ⇒ Boolean</code>
-                    </td>
-                    <td>Calls <a target="asf" 
href="http://commons.apache.org/";>Apache Commons</a> <a target="javadoc" 
href="http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#isNumeric-java.lang.CharSequence-";><code>StringUtils.isNumeric()</code></a>
 function on given parameter and returns its result.</td>
-                    <td>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td>
+                            <code><b>is_num</b>(p: String) ⇒ Boolean</code>
+                        </td>
+                        <td>Calls <a target="asf" 
href="http://commons.apache.org/";>Apache Commons</a> <a target="javadoc" 
href="http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#isNumeric-java.lang.CharSequence-";><code>StringUtils.isNumeric()</code></a>
 function on given parameter and returns its result.</td>
+                        <td>
                         <pre class="brush:idl">
                             // Result: true
                             is_num("123")
@@ -608,40 +624,60 @@ id: intent_matching
                             // Result: false
                             is_num("text")
                         </pre>
-                    </td>
-                </tr>
-                <tr>
-                    <td>
-                        <code><b>is_numspace</b>(p: String) ⇒ Boolean</code>
-                    </td>
-                    <td>Calls <a target="asf" 
href="http://commons.apache.org/";>Apache Commons</a> <a target="javadoc" 
href="http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#isNumericSpace-java.lang.CharSequence-";><code>StringUtils.isNumericSpace()</code></a>
 function on given parameter and returns its result.</td>
-                    <td>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td>
+                            <code><b>is_numspace</b>(p: String) ⇒ 
Boolean</code>
+                        </td>
+                        <td>Calls <a target="asf" 
href="http://commons.apache.org/";>Apache Commons</a> <a target="javadoc" 
href="http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#isNumericSpace-java.lang.CharSequence-";><code>StringUtils.isNumericSpace()</code></a>
 function on given parameter and returns its result.</td>
+                        <td>
                         <pre class="brush:idl">
                             // Result: true
                             is_numspace("  123  ")
                         </pre>
-                    </td>
-                </tr>
+                        </td>
+                    </tr>
 
 
 
-<!--
-            case "is_alphaspace" ⇒ z[ST](arg1, { x ⇒ val Z(v, f) = x(); 
Z(StringUtils.isAlphaSpace(toStr(v)), f) })
-            case "is_alphanumspace" ⇒ z[ST](arg1, { x ⇒ val Z(v, f) = x(); 
Z(StringUtils.isAlphanumericSpace(toStr(v)), f) })
-            case "split" ⇒ doSplit()
-            case "split_trim" ⇒ doSplitTrim()
-            case "start_with" ⇒ doStartWith()
-            case "end_with" ⇒ doEndWith()
-            case "contains" ⇒ doContains()
-            case "index_of" ⇒ doIndexOf()
-            case "substr" ⇒ doSubstr()
-            case "replace" ⇒ doReplace()
-            case "to_double" ⇒ doToDouble()
-            case "to_int" ⇒ doToInt()
+                    <!--
+                                case "is_alphaspace" ⇒ z[ST](arg1, { x ⇒ val 
Z(v, f) = x(); Z(StringUtils.isAlphaSpace(toStr(v)), f) })
+                                case "is_alphanumspace" ⇒ z[ST](arg1, { x ⇒ 
val Z(v, f) = x(); Z(StringUtils.isAlphanumericSpace(toStr(v)), f) })
+                                case "split" ⇒ doSplit()
+                                case "split_trim" ⇒ doSplitTrim()
+                                case "start_with" ⇒ doStartWith()
+                                case "end_with" ⇒ doEndWith()
+                                case "contains" ⇒ doContains()
+                                case "index_of" ⇒ doIndexOf()
+                                case "substr" ⇒ doSubstr()
+                                case "replace" ⇒ doReplace()
+                                case "to_double" ⇒ doToDouble()
+                                case "to_int" ⇒ doToInt()
 
--->
-            </tbody>
-        </table>
+                    -->
+                    </tbody>
+                </table>
+            </div>
+            <div class="tab-pane fade show" id="fn_math" role="tabpanel">
+            </div>
+            <div class="tab-pane fade show" id="fn_collection" role="tabpanel">
+            </div>
+            <div class="tab-pane fade show" id="fn_token" role="tabpanel">
+            </div>
+            <div class="tab-pane fade show" id="fn_metadata" role="tabpanel">
+            </div>
+            <div class="tab-pane fade show" id="fn_datetime" role="tabpanel">
+            </div>
+            <div class="tab-pane fade show" id="fn_req" role="tabpanel">
+            </div>
+            <div class="tab-pane fade show" id="fn_user" role="tabpanel">
+            </div>
+            <div class="tab-pane fade show" id="fn_company" role="tabpanel">
+            </div>
+            <div class="tab-pane fade show" id="fn_other" role="tabpanel">
+            </div>
+        </div>
         <h2 id="idl_location" class="section-sub-title">IDL Location</h2>
         <p>
             IDL declarations can be placed in different locations based on 
user preferences:

Reply via email to