
 Usage: semkit read [IN] fix-word-order [OPTIONS]

 The words of the phrase in the order of a search query.

 «диван для гостиной раскладной кожаный» → «кожаный раскладной диван для гостиной». Three things
 happen:
 1. The complements go to the end: a preposition (для, с, без, в, из, на…) with the words after it
 up to its first noun and the oblique nouns and adjectives right after that noun («из массива
 дуба»), stopping at the next preposition or at the main word.
 2. The adjectives that agree with the main word in the form go first.
 3. The words of the bundled list of words that start a query (где, купить, недорогой, кожаный…, in
 that form) go first, in the order of the list.

 The words are joined by one space.

 form: the form of the adjectives of step 2: masculine («кожаный»), feminine («кожаная»),
 feminine_accusative («кожаную»), plural («кожаные»).
 main_word: the object of the query, one word (case and ё do not count): a complement never takes
 it.
 complements: on, all three steps; off (--no-complements), only step 3.

 Example: semkit read --text "диван для гостиной раскладной кожаный" fix-word-order write -
 -> кожаный раскладной диван для гостиной

 The step rewrites the working column; with --as NAME it writes the result to a new column NAME.

╭─ Options ────────────────────────────────────────────────────────────────────────────────────────╮
│ --form                               <masculine|feminine|feminine  the form of the adjectives of │
│                                      _accusative|plural>           step 2: masculine             │
│                                                                    («кожаный»), feminine         │
│                                                                    («кожаная»),                  │
│                                                                    feminine_accusative           │
│                                                                    («кожаную»), plural           │
│                                                                    («кожаные»).                  │
│                                                                    [default: masculine]          │
│ --main-word                          <str>                         the object of the query, one  │
│                                                                    word (case and ё do not       │
│                                                                    count): a complement never    │
│                                                                    takes it.                     │
│ --complements    --no-complements                                  on, all three steps; off      │
│                                                                    (--no-complements), only step │
│                                                                    3.                            │
│                                                                    [default: complements]        │
│ --as                                 NAME                          Write the result to a new     │
│                                                                    column NAME and keep the      │
│                                                                    working column as it is.      │
│ --help                                                             Show this message and exit.   │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

