API

Page Content

API

render_text_to_html

Send POST request to api.matov.pro and get text ready for web publishing⁠. The raw string is passed in the body of the request⁠.

https://api.matov.pro/typograph/processing/alpha/render_text_to_html

You can configure Typograph via sending parameters:

.../render_text_to_html?typography=true&autolinkify=true&linkprettify=true

In case of successful processing, you receive a response with a status of 200 and a ready-made line in the response body⁠.

<span class='nobrsoft'><span class='nobr'>In recent</span> years</span>&NoBreak;, <span class='nobrsoft'>the rapper</span> turned designer, <span class='nobrsoft'>whose legal</span> <span class='nobrsoft'>name <span class='nobr'>is now Ye</span></span>&NoBreak;, <span class='nobrsoft'>has suggested</span> that <span class='nobrsoft'>400 years</span> <span class='nobr'>of chattel</span> slavery was&nbsp;“&NoBreak;<span class='nobr'>a choice</span>&NoBreak;” <span class='nobrsoft'>and sported</span> <span class='nobrsoft'>the confederate</span> flag <span class='nobr'>as a fashion</span> statement. <span class='nobr'>He defended</span> <span class='nobrsoft'>the likes</span> <span class='nobr'>of Bill</span> Cosby <span class='nobrsoft'>and <span class='nobr'>R. Kelly</span></span>&NoBreak;; aligned himself with controversial figures <span class='nobrsoft'>like DaBaby</span>&NoBreak;, <span class='nobrsoft'>Marilyn Manson</span>&NoBreak;, <span class='nobrsoft'>and former</span> president <span class='nobrsoft'>Donald Trump</span>&NoBreak;; <span class='nobrsoft'>and spoke</span> <span class='nobrsoft'>out <span class='nobr'>in support</span></span> <span class='nobrsoft'><span class='nobr'>of the</span> MAGA</span> movement during <span class='nobrsoft'>the height</span> <span class='nobr'>of tensions</span> <span class='nobrsoft'><span class='nobr'>in the</span> country</span>&NoBreak;.

string_to_object

Typograph is based on a natural language processing engine⁠. This functionality is available via API⁠:

https://api.matov.pro/nlp/processing/alpha/string_to_object

The method exposes the string object⁠: sentences in their natural form⁠, tokenized sentences with tokens represented as words⁠, tokens and molecules⁠:

{
    "string_natural_hash": "ff8dfd0d0021ba74d9b48e9bbc7f6cc07eb6681f",

    "string_natural":
        "In recent years, the rapper turned designer, whose legal name is now Ye, has suggested that 400 years of chattel slavery was “a choice” and sported the confederate flag as a fashion statement. He defended the likes of Bill Cosby and R. Kelly; aligned himself with controversial figures like DaBaby, Marilyn Manson, and former president Donald Trump; and spoke out in support of the MAGA movement during the height of tensions in the country.",

    "sentences_natural": [
        "In recent years, the rapper turned designer, whose legal name is now Ye, has suggested that 400 years of chattel slavery was “a choice” and sported the confederate flag as a fashion statement.",
        "He defended the likes of Bill Cosby and R. Kelly; aligned himself with controversial figures like DaBaby, Marilyn Manson, and former president Donald Trump; and spoke out in support of the MAGA movement during the height of tensions in the country."
    ],

    "sentences_ocw": [
        "Stubqqqqqqqqsopq stubqqqqqqqqtopq stubqqqqqqqquopq, stubqqqqqqqqvopq stubqqqqqqqqwopq stubqqqqqqqqxopq stubqqqqqqqqyopq, stubqqqqqqqqzopq stubqqqqqqqrqopq stubqqqqqqqrropq stubqqqqqqqrsopq stubqqqqqqqrtopq Stubqqqqqqqruopq, stubqqqqqqqrvopq stubqqqqqqqrwopq stubqqqqqqqrxopq Stubqqqqqqqryopq stubqqqqqqqrzopq stubqqqqqqqsqopq stubqqqqqqqsropq stubqqqqqqqssopq stubqqqqqqqstopq “stubqqqqqqqsuopq stubqqqqqqqsvopq” stubqqqqqqqswopq stubqqqqqqqsxopq stubqqqqqqqsyopq stubqqqqqqqszopq stubqqqqqqqtqopq stubqqqqqqqtropq stubqqqqqqqtsopq stubqqqqqqqttopq stubqqqqqqqtuopq.",
        "Stubqqqqqqqtxopq stubqqqqqqqtyopq stubqqqqqqqtzopq stubqqqqqqquqopq stubqqqqqqquropq Stubqqqqqqqusopq Stubqqqqqqqutopq stubqqqqqqquuopq Stubqqqqqqquvopq; stubqqqqqqquwopq stubqqqqqqquxopq stubqqqqqqquyopq stubqqqqqqquzopq stubqqqqqqqvqopq stubqqqqqqqvropq Stubqqqqqqqvsopq, Stubqqqqqqqvtopq Stubqqqqqqqvuopq, stubqqqqqqqvvopq stubqqqqqqqvwopq stubqqqqqqqvxopq Stubqqqqqqqvyopq Stubqqqqqqqvzopq; stubqqqqqqqwqopq stubqqqqqqqwropq stubqqqqqqqwsopq stubqqqqqqqwtopq stubqqqqqqqwuopq stubqqqqqqqwvopq stubqqqqqqqwwopq Stubqqqqqqqwxopq stubqqqqqqqwyopq stubqqqqqqqwzopq stubqqqqqqqxqopq stubqqqqqqqxropq stubqqqqqqqxsopq stubqqqqqqqxtopq stubqqqqqqqxuopq stubqqqqqqqxvopq stubqqqqqqqxwopq."
    ],

    "sentences_tokenized": [
        "=%000000002%= =%000000003%= =%000000004%=, =%000000005%= =%000000006%= =%000000007%= =%000000008%=, =%000000009%= =%000000010%= =%000000011%= =%000000012%= =%000000013%= =%000000014%=, =%000000015%= =%000000016%= =%000000017%= =%000000018%= =%000000019%= =%000000020%= =%000000021%= =%000000022%= =%000000023%= “=%000000024%= =%000000025%=” =%000000026%= =%000000027%= =%000000028%= =%000000029%= =%000000030%= =%000000031%= =%000000032%= =%000000033%= =%000000034%=.",
        "=%000000037%= =%000000038%= =%000000039%= =%000000040%= =%000000041%= =%000000042%= =%000000043%= =%000000044%= =%000000045%=; =%000000046%= =%000000047%= =%000000048%= =%000000049%= =%000000050%= =%000000051%= =%000000052%=, =%000000053%= =%000000054%=, =%000000055%= =%000000056%= =%000000057%= =%000000058%= =%000000059%=; =%000000060%= =%000000061%= =%000000062%= =%000000063%= =%000000064%= =%000000065%= =%000000066%= =%000000067%= =%000000068%= =%000000069%= =%000000070%= =%000000071%= =%000000072%= =%000000073%= =%000000074%= =%000000075%= =%000000076%=."
    ],

    "tokens": {
        "000000002": "In",
        "000000003": "recent",
        "000000004": "years",
        "000000005": "the",
        "000000006": "rapper",
        ...
    },

    "string_tokenized":
        "=%000000002%= =%000000003%= =%000000004%=, =%000000005%= =%000000006%= =%000000007%= =%000000008%=, =%000000009%= =%000000010%= =%000000011%= =%000000012%= =%000000013%= =%000000014%=, =%000000015%= =%000000016%= =%000000017%= =%000000018%= =%000000019%= =%000000020%= =%000000021%= =%000000022%= =%000000023%= “=%000000024%= =%000000025%=” =%000000026%= =%000000027%= =%000000028%= =%000000029%= =%000000030%= =%000000031%= =%000000032%= =%000000033%= =%000000034%=. =%000000037%= =%000000038%= =%000000039%= =%000000040%= =%000000041%= =%000000042%= =%000000043%= =%000000044%= =%000000045%=; =%000000046%= =%000000047%= =%000000048%= =%000000049%= =%000000050%= =%000000051%= =%000000052%=, =%000000053%= =%000000054%=, =%000000055%= =%000000056%= =%000000057%= =%000000058%= =%000000059%=; =%000000060%= =%000000061%= =%000000062%= =%000000063%= =%000000064%= =%000000065%= =%000000066%= =%000000067%= =%000000068%= =%000000069%= =%000000070%= =%000000071%= =%000000072%= =%000000073%= =%000000074%= =%000000075%= =%000000076%=.",

    "string_ocw":
        "Stubqqqqqqqqsopq stubqqqqqqqqtopq stubqqqqqqqquopq, stubqqqqqqqqvopq stubqqqqqqqqwopq stubqqqqqqqqxopq stubqqqqqqqqyopq, stubqqqqqqqqzopq stubqqqqqqqrqopq stubqqqqqqqrropq stubqqqqqqqrsopq stubqqqqqqqrtopq Stubqqqqqqqruopq, stubqqqqqqqrvopq stubqqqqqqqrwopq stubqqqqqqqrxopq Stubqqqqqqqryopq stubqqqqqqqrzopq stubqqqqqqqsqopq stubqqqqqqqsropq stubqqqqqqqssopq stubqqqqqqqstopq “stubqqqqqqqsuopq stubqqqqqqqsvopq” stubqqqqqqqswopq stubqqqqqqqsxopq stubqqqqqqqsyopq stubqqqqqqqszopq stubqqqqqqqtqopq stubqqqqqqqtropq stubqqqqqqqtsopq stubqqqqqqqttopq stubqqqqqqqtuopq. Stubqqqqqqqtxopq stubqqqqqqqtyopq stubqqqqqqqtzopq stubqqqqqqquqopq stubqqqqqqquropq Stubqqqqqqqusopq Stubqqqqqqqutopq stubqqqqqqquuopq Stubqqqqqqquvopq; stubqqqqqqquwopq stubqqqqqqquxopq stubqqqqqqquyopq stubqqqqqqquzopq stubqqqqqqqvqopq stubqqqqqqqvropq Stubqqqqqqqvsopq, Stubqqqqqqqvtopq Stubqqqqqqqvuopq, stubqqqqqqqvvopq stubqqqqqqqvwopq stubqqqqqqqvxopq Stubqqqqqqqvyopq Stubqqqqqqqvzopq; stubqqqqqqqwqopq stubqqqqqqqwropq stubqqqqqqqwsopq stubqqqqqqqwtopq stubqqqqqqqwuopq stubqqqqqqqwvopq stubqqqqqqqwwopq Stubqqqqqqqwxopq stubqqqqqqqwyopq stubqqqqqqqwzopq stubqqqqqqqxqopq stubqqqqqqqxropq stubqqqqqqqxsopq stubqqqqqqqxtopq stubqqqqqqqxuopq stubqqqqqqqxvopq stubqqqqqqqxwopq."
}