Sort by Last WordΒΆ

Smoke tests:
>>> from techminer2.thesaurus.user import InitializeThesaurus
>>> (
...     InitializeThesaurus()
...     .with_thesaurus_file("demo.the.txt")
...     .with_field("raw_descriptors")
...     .where_root_directory("examples/fintech/")
...     .using_colored_output(False)
...     .run()
... )
INFO: Thesaurus initialized successfully.
  Success : True
  File    : examples/fintech/data/thesaurus/demo.the.txt
  Status  : 1721 keys found
  Header  :
    A_A_THEORY
      A_A_THEORY
    A_BASIC_RANDOM_SAMPLING_STRATEGY
      A_BASIC_RANDOM_SAMPLING_STRATEGY
    A_BEHAVIOURAL_PERSPECTIVE
      A_BEHAVIOURAL_PERSPECTIVE
    A_BETTER_UNDERSTANDING
      A_BETTER_UNDERSTANDING
    A_BLOCKCHAIN_IMPLEMENTATION_STUDY
      A_BLOCKCHAIN_IMPLEMENTATION_STUDY
    A_CASE_STUDY
      A_CASE_STUDY
    A_CHALLENGE
      A_CHALLENGE
    A_CLUSTER_ANALYSIS
      A_CLUSTER_ANALYSIS
>>> from techminer2.thesaurus.user import SortByLastWords
>>> (
...     SortByLastWords()
...     .with_thesaurus_file("demo.the.txt")
...     .where_root_directory("examples/fintech/")
...     .using_colored_output(False)
...     .run()
... )
INFO: Thesaurus sorted successfully.
  Success : True
  File    : examples/fintech/data/thesaurus/demo.the.txt
  Status  : 17 matches found
  Header  :
    AGRICULTURE_PLAYS
      AGRICULTURE_PLAYS
    CHINA_EASTERN
      CHINA_EASTERN
    CONTINUANCE_INTENTION_DIFFERS
      CONTINUANCE_INTENTION_DIFFERS
    DIGITAL_FINANCE_ENCOMPASSES
      DIGITAL_FINANCE_ENCOMPASSES
    ENTREPRENEURIAL_ENDEAVOURS
      ENTREPRENEURIAL_ENDEAVOURS
    FOUR_SPECIFIC_INCREASES
      FOUR_SPECIFIC_INCREASES
    INNOVATIONS_EXACERBATE
      INNOVATIONS_EXACERBATE
    LENDINGCLUB_LOANS_INCREASES
      LENDINGCLUB_LOANS_INCREASES