Skip to main content

Sighted - Your brain reads faster than your eyes!

Using NLP and bionic AI algorithms to help you stay focused and not get distracted when reading.

Installation

pip install sighted

Sighted uses a very light (~12Mb) pre-trained model that works perfectly fine with normal text inputs.

Usage

from sighted import Literal
from sighted.language import PoS

from string import Template


text = "Hello there. This is an experimental text to showcase \
        how fast you can read with Sighted."

language = Literal(
    text=text, 
    fixation=2,
    saccade=2,
    ignore_pos=[PoS.PUNCT]  # ignoring punctuations
)  

transformed_text = language.transform(
    template=Template(' <span class="$pos" id="$dep"><b>$fix</b>$unfix</span>')
)

The transformed_text is an iterable that contains the following items:

<span class="intj" id="ROOT"><b>He</b>llo</span>
<span class="adv" id="advmod"><b>th</b>ere</span>
. <!-- Look how this punctuation is ignored -->
<span class="pron" id="nsubj"><b>Th</b>is</span>
<span class="aux" id="ROOT"><b>i</b>s</span>
<span class="det" id="det"><b>a</b>n</span>
<span class="adj" id="amod"><b>exper</b>imental</span>
<span class="noun" id="attr"><b>te</b>xt</span>
<span class="part" id="aux"><b>t</b>o</span>
<span class="verb" id="relcl"><b>show</b>case</span>
<span class="space" id="dep"><b>    </b>    </span>
<span class="sconj" id="advmod"><b>ho</b>w</span>
<span class="adv" id="advmod"><b>fa</b>st</span>
<span class="pron" id="nsubj"><b>yo</b>u</span>
<span class="aux" id="aux"><b>ca</b>n</span>
<span class="verb" id="ccomp"><b>re</b>ad</span>
<span class="adp" id="prep"><b>wi</b>th</span>
<span class="propn" id="pobj"><b>Sig</b>hted</span>
. <!-- Look how this punctuation is ignored -->

If you place this content within a <p/> tag in a very basic HTML <body/> structure, you'll have this kind of UI.

Basic result

Since you have used $pos and $dep to set unique class and id to each word, you now have full control over their styling.

/* unfixed letters */
p { color: gray; }

/* fixed letters */
b { color: black; }

/* adverbs */
.adv { border-bottom: solid 1px; }

/* pronouns */
.pron { color: red; }
.pron > b { color: purple; }

/* verbs */
.verb {
    background-color: yellow;
    padding: 3px;
    border-radius: 2px;
}

Now, you see how that basic CSS styling declaration has affected the text.

Basic result

Fixation

This parameter indicates how many first letters from each word should be considered as fixation. It's a value between 1 to 5. As you increase it, you see that the amount of fixed letters (bolded letters) will increase from the beginning of each word.

Basic result

Saccade

Saccades are rapid, involuntary eye movements that play a crucial role in reading by allowing the eyes to jump quickly from one word or section of text to another. In bionic reading, a technique designed to enhance reading efficiency, saccades are optimized by strategically highlighting certain letters or parts of words to guide the reader’s gaze. This method reduces the cognitive load on the brain by making it easier to recognize and process words, thereby improving reading speed and comprehension. By leveraging the natural mechanics of saccades, Sighted can make the reading experience smoother and more intuitive, particularly for individuals with reading difficulties.

Basic result

Basic result Image credits: ResearchGate

ADHD & Dyslexia

Sighted aids individuals with dyslexia by highlighting the first few letters of words, enhancing pattern recognition and reducing the cognitive effort needed for word decoding. For those with ADHD (Attention Deficit Hyperactivity Disorder), this technique helps maintain focus and improves reading fluency by guiding the eyes and reducing distractions within the text.

License

MIT

Release files for sighted 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sighted 0.0.4
File Size Uploaded
sighted-0.0.4.tar.gz 12.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for sighted 0.0.4
File Interpreter ABI Platform
sighted-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 25.6 MB

Release files / sighted-0.0.4.tar.gz

Download URL sighted-0.0.4.tar.gz
Size 12.8 MB
Tags Source
SHA-256 checksum
How to use checksums
f4151f5929498e6b73dc1bb24f78a8e180910dc48ce771baa19f332c5930b813
BLAKE2b-256 checksum
How to use checksums
02338e2aee6892f4f5af38272e15f92677aa35f1c04248ecebaa6d532322209e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / sighted-0.0.4-py3-none-any.whl

Download URL sighted-0.0.4-py3-none-any.whl
Size 12.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
184be96beef28a55b3260fc188fbaea52a47aa50b1f520066d6d1b5aa940e204
BLAKE2b-256 checksum
How to use checksums
19aea52a1bab3c734999704fde4a9a726c28bfaa40c204ded2d656b287736af3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page