Editorial Workflows

Parts of Speech

public workflow

Install Workflow...

This workflow contains at least one Python script. Only use it if you trust the person who shared this with you, and if you know exactly what it does.

I understand, install the workflow!

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: This workflow indexes every word in the current document, associates it with its part of speech, presents it in a pop-up list, searches the document for a selected word, speaks how many occurances of that word are in the document, and does an optional dictionary search for the word (this can be removed if you wish).

It includes a custom action using the Linguistitagger module.

Wednesday September 17, 2014 12:5342 AM

Shared by: Tutorial Doctor

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Document Text ?
Folded Text
  • Include
  • Replace with:
Remove Punctuation ?
Find
[.,?!'-;:<>#%*+~|="“”’–*{}()$]
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
Parts of Speech ?
Remove Tagger Whitespace ?
Repeat with
  • Every Line
  • Every Match of Regular Expression:
Match Group
0 (entire match)
Reverse
OFF
Find / Replace ?
Find
= (Whitespace)
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
…End Repeat
Remove Duplicate Lines ?
Sort Lines ?
Sort Order
  • Ascending (A → Z)
  • Descending (Z → A)
Remove Whitespace ?
  • Trim leading/trailing whitespace
  • Remove empty lines
Set Variable ?
Variable Name
full_list
Value
Input
Select from List ?
Title
Parts of Speech
List (Lines)
full_list
Multiple Selection
OFF
Show in Popover
OFF
Play Sound Effect ?
Effect
Coin_2
Wait until Finished
OFF
Find Words ?
Search for
\w+
Match Group (RegEx)
0 (entire match)
Search Type
  • Regular Expression
  • Case-insensitive Search (A = a)
  • Case-sensitive Search (A ≠ a)
Output
  • Found Text
  • Range of Text (from:to)
Store Selected ?
Variable Name
selected
Value
Input
Count & Speak Occurances ?
Run the block if
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Document Text ?
Folded Text
  • Include
  • Replace with:
Occurances of Selected ?
Repeat with
  • Every Line
  • Every Match of Regular Expression:
selected
Match Group
0 (entire match)
Reverse
OFF
Increment ?
Expression
i + 1
On Error
  • Stop Workflow
  • Output "ERROR"
Result
  • Pass to Next Action
  • Store in Variable:
i
…End Repeat
Speak Text ?
Text
i matches found.
Language
  • System Language
  • Guess Text Language
Wait until Finished
ON
Rate
  • Very Slow
  • Slow
  • Normal
  • Faster
  • Very Fast
…End If
Highlight Occurrences ?
Search for
%var:selected
Regular Expression
OFF
Select First Result
OFF
Show Alert ?
Title
Do want to define this word?
Message
Button 1
Yes
Output Value
Yes
Button 2
No
Output Value
Button 3
(don't show)
Output Value
Show Cancel Button
ON
Define? ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Yes
Speak Text ?
Text
Defining
Language
  • System Language
  • Guess Text Language
Wait until Finished
ON
Rate
  • Very Slow
  • Slow
  • Normal
  • Faster
  • Very Fast
Generate Text ?
Text
selected
Show Definition ?
…End If