From e9f6ee2080b293a9333238873ab808cab1d4f17b Mon Sep 17 00:00:00 2001 From: Arpita kesharwani <107834813+KesharwaniArpita@users.noreply.github.com> Date: Sat, 12 Oct 2024 23:08:31 +0530 Subject: [PATCH 1/3] Update cli.rst added the complete processes and outputs for list commands --- docs/source/scribe_data/cli.rst | 78 +++++++++++++++++++++++++++++++-- 1 file changed, 74 insertions(+), 4 deletions(-) diff --git a/docs/source/scribe_data/cli.rst b/docs/source/scribe_data/cli.rst index 719de650c..8fdf653a5 100644 --- a/docs/source/scribe_data/cli.rst +++ b/docs/source/scribe_data/cli.rst @@ -1,10 +1,10 @@ -cli/ +Command Line Interface(CLI) ==== -`View code on Github `_ - Scribe-Data provides a command-line interface (CLI) for efficient interaction with its language data functionality. +`View code on Github `_ + Usage ----- @@ -54,16 +54,86 @@ Example output: .. code-block:: text $ scribe-data list + Language ISO QID ----------------------- English en Q1860 French fr Q150 German de Q188 - ... + Italian it Q652 + Portuguese pt Q5146 + Russian ru Q7737 + Spanish es Q1321 + Swedish sv Q9027 + ----------------------- + + Available data types: All languages + ----------------------------------- + adjectives + adverbs + emoji-keywords + nouns + prepositions + translations + verbs + ----------------------------------- + + + +.. code-block:: text + + $scribe-data list --language + + Language ISO QID + ----------------------- + English en Q1860 + French fr Q150 + German de Q188 + Italian it Q652 + Portuguese pt Q5146 + Russian ru Q7737 + Spanish es Q1321 + Swedish sv Q9027 + ----------------------- + + +.. code-block:: text + + $scribe-data list -dt + + Available data types: All languages + ----------------------------------- + adjectives + adverbs + emoji-keywords + nouns + prepositions + translations + verbs + ----------------------------------- + + +.. code-block:: text + + $scribe-data list -a + + Language ISO QID + ----------------------- + English en Q1860 + French fr Q150 + German de Q188 + Italian it Q652 + Portuguese pt Q5146 + Russian ru Q7737 + Spanish es Q1321 + Swedish sv Q9027 ----------------------- Available data types: All languages ----------------------------------- + adjectives + adverbs + emoji-keywords nouns prepositions translations From 166ba19ecb1dc0a806a709b16f995de9e387b6c4 Mon Sep 17 00:00:00 2001 From: Arpita kesharwani <107834813+KesharwaniArpita@users.noreply.github.com> Date: Sat, 12 Oct 2024 23:23:28 +0530 Subject: [PATCH 2/3] Update cli.rst added the complete processes and outputs for total commands --- docs/source/scribe_data/cli.rst | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/docs/source/scribe_data/cli.rst b/docs/source/scribe_data/cli.rst index 8fdf653a5..9a40f4d43 100644 --- a/docs/source/scribe_data/cli.rst +++ b/docs/source/scribe_data/cli.rst @@ -267,14 +267,34 @@ Examples: .. code-block:: text - $ scribe-data total -dt nouns + $scribe-data total -dt nouns Data type: nouns - Total number of lexemes: + Total number of lexemes: 889594 - $ scribe-data total -lang eng -dt nouns - Language: eng - Data type: nouns - Total number of lexemes: +.. code-block:: text + + $scribe-data total -dt verbs + Data type: verbs + Total number of lexemes: 149169 + +.. code-block:: text + + $scribe-data total -lang English + Language: English + Total number of lexemes: 75267 + +.. code-block:: text + + $scribe-data total -lang Hindustani + Language: Hindustani + Total number of lexemes: 1344899 + +.. code-block:: text + + $scribe-data total -lang Hindustani -dt verbs + Language: Hindustani + Data type: verbs + Total number of lexemes: 149169 Convert Command ~~~~~~~~~~~~~~~ From a8a9e4fb09b4976baf297b0506f8776bba19b87c Mon Sep 17 00:00:00 2001 From: Andrew Tavis McAllister Date: Sat, 12 Oct 2024 23:43:57 +0200 Subject: [PATCH 3/3] Minor edits to CLI docs - shorten outputs / examples --- docs/source/scribe_data/cli.rst | 56 ++++++++------------------------- 1 file changed, 13 insertions(+), 43 deletions(-) diff --git a/docs/source/scribe_data/cli.rst b/docs/source/scribe_data/cli.rst index 9a40f4d43..7d5b04378 100644 --- a/docs/source/scribe_data/cli.rst +++ b/docs/source/scribe_data/cli.rst @@ -1,10 +1,10 @@ -Command Line Interface(CLI) +cli/ ==== -Scribe-Data provides a command-line interface (CLI) for efficient interaction with its language data functionality. - `View code on Github `_ +Scribe-Data provides a command-line interface (CLI) for efficient interaction with its language data functionality. + Usage ----- @@ -58,13 +58,7 @@ Example output: Language ISO QID ----------------------- English en Q1860 - French fr Q150 - German de Q188 - Italian it Q652 - Portuguese pt Q5146 - Russian ru Q7737 - Spanish es Q1321 - Swedish sv Q9027 + ... ----------------------- Available data types: All languages @@ -87,13 +81,7 @@ Example output: Language ISO QID ----------------------- English en Q1860 - French fr Q150 - German de Q188 - Italian it Q652 - Portuguese pt Q5146 - Russian ru Q7737 - Spanish es Q1321 - Swedish sv Q9027 + ... ----------------------- @@ -120,13 +108,7 @@ Example output: Language ISO QID ----------------------- English en Q1860 - French fr Q150 - German de Q188 - Italian it Q652 - Portuguese pt Q5146 - Russian ru Q7737 - Spanish es Q1321 - Swedish sv Q9027 + ... ----------------------- Available data types: All languages @@ -267,34 +249,22 @@ Examples: .. code-block:: text - $scribe-data total -dt nouns + $scribe-data total -dt nouns # verbs, adjectives, etc Data type: nouns - Total number of lexemes: 889594 - -.. code-block:: text - - $scribe-data total -dt verbs - Data type: verbs - Total number of lexemes: 149169 + Total number of lexemes: 123456 .. code-block:: text $scribe-data total -lang English Language: English - Total number of lexemes: 75267 + Total number of lexemes: 123456 .. code-block:: text - $scribe-data total -lang Hindustani - Language: Hindustani - Total number of lexemes: 1344899 - -.. code-block:: text - - $scribe-data total -lang Hindustani -dt verbs - Language: Hindustani - Data type: verbs - Total number of lexemes: 149169 + $scribe-data total -lang English -dt nouns + Language: English + Data type: nouns + Total number of lexemes: 12345 Convert Command ~~~~~~~~~~~~~~~