Code Monkey home page Code Monkey logo

cleartext-mac's People

Contributors

andreaponza avatar daanweijers avatar davelab6 avatar ejensen avatar maxcherepitsa avatar mortenjust avatar nickeb96 avatar quver avatar samuelpoquette avatar thiht avatar tlk avatar youdly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cleartext-mac's Issues

Find base form of word before looking up in simple list

The English list is currently more than 1,000 words to cover conjugations. But if we use NSLinguisticTagSchemeLemma, we can find the root word before we look it up in the word list.

I propose modifying the isSimple function in in the SimpleWords class, and adding a lemmaForWord(word:Stirng) function.

Here's an example to get you started

var question = "We were lovers"
let options: NSLinguisticTaggerOptions = [.OmitWhitespace, .OmitPunctuation, .JoinNames]
let schemes = NSLinguisticTagger.availableTagSchemesForLanguage("en")
let tagger = NSLinguisticTagger(tagSchemes: schemes, options: Int(options.rawValue))
tagger.string = question
tagger.enumerateTagsInRange(NSMakeRange(0, (question as NSString).length), scheme: NSLinguisticTagSchemeLemma, options: options) { (tag, tokenRange, _, _) in
    let token = (question as NSString).substringWithRange(tokenRange)
    print("\(token): \(tag)")
}

It returns

We: we
were: be
lovers: lover

Once this is in place, we can look into making the lists longer, and providing the user with the option of writing with the 1,000....10,000 most common words.

https://developer.apple.com/library/mac/documentation/Cocoa/Reference/NSLinguisticTagger_Class/#//apple_ref/c/data/NSLinguisticTagSchemeLemma

License unclear

Hey Morten,

first of all thank you for the project. Nice work! ๐Ÿ‘

I have observed some mismatches between the given license of the project and the stated license of the code (mostly the .swift files). In the .swift files it is stated that "all rights reserved" whereas in the License.txt you pasted the GPLv3. My question would be, under what terms i can improve and share your work?

Thanks again and best regards,
Tim

No Cursor in app

Are there any special installation instructions?

When I open ClearText.app and try to type in the window nothing happens. No text appears and no cursor flashes like the demo movies.

Application broken in macOS Sierra

I cannot write with the app in macOS Sierra. There is no cursor and I cant type. Although I can still save the empty .txt document to my desktop.

Cleartext online

Make the world a(nother) favor! Online version of cleartext!!

Ignore all numbers.

When I tried to type Explain something hard with a 1000..., it marked the number 1000 as wrong, which seems quite foolish.

When I investigated the number issue a bit more, it does accept 1 and 0, so it's only logical it should accept 1000 from a user-point of view?

Issue with auto fancy apostrophes

If you type a contraction, OS X automatically changes the upright apostrophe/single quote to a slanted one. Cleartext recognizes "I'm" as a valid word, but not the corrected version "Iโ€™m" (notice the subtle difference in the apostrophe character).

This requires you to quickly type the space after the end of the word before OS X recognizes the contraction and changes the apostrophe, which can get a bit annoying.

Where is "start" or "run"?

Pls excuse my ignorance, but I don't c any way to make the application work.

I pasted text into the application, but nothing happens, and I can't find a command that makes the simplier work.

Background image problems

The background image initially appears in the en locale, but with a different opacity than in Trump Switching to Trump and back fixes this.

Add languages

Would be cool if the application could work with languages other than English

Apostrophe issues

Apparently, when typing an apostrophe, cleartext thinks that you're trying to complete the previous word. For example, you can't type the word Don't.

Proper nouns should be allowed

Currently names are rejected. Words beginning with a capital letter should be allowed.

Example: "Yesterday Patrick said to me..."

Issue: Patrick is rejected. Proper names are rejected.

Desired result: words that are capitalized should be excluded from the rejection behavior.

add ability to leave highlighted words for later

Similar to issue #24 , but not. I think there is a lot of value in having the unacceptable words highlighted, but allowing the user to easily continue without removing them. I've noticed that I can leave the word there by hitting the down arrow which jumps the cursor ahead by a few characters and disables the highlight. I'm not sure why that works, but I'm glad that it does.

I'd rather the ability to just highlight the bad words and continue. Then the choice to leave them is intentional, but the app will continue to point the issue out.

Opposite mode

I want an opposite mode, to change a simple primitive words to something sophisticated. Why? Because i'm not a native English speaker. And it's fine if you use 1000 words in your speech, if you are still able to use more of them. Thanks.

Select the space after a "failed" word

Right now, the document ends up with a bunch of abandoned spaces to the right of the text input pointer because Cleartext selects only the word, and not the space that triggered the isSimple check. Writing would be much faster if the space was also selected, and we could just type a simpler word (and a space to check it) and keep on going.

Licencing

Hi - I didn't see a licence on the project - I was hoping to make use of the en.txt file - are you retaining a licence on it?

Joe

Invalid words bug

If you use a word that is not allowed (for example, ironically, the word application), you can press a character (space, period, etc.) and start a new word afterwards, that old word remains

Pressing space when the first word is selected breaks the editor

If space is pressed with the first word selected, nothing can be typed any more. My first time trying this, I started with and instantly the editor broke. Guess I'm that good at beta testing.

Three different ways to reproduce that I find realistic (on Mac, version 1.31):

  1. Start by typing Wow, (with a space in the end)
  2. You can't type any more.

  1. Type an incomplete sentence such as so cool
  2. Move cursor to the beginning.
  3. Type Wow, (with a space in the end)
  4. You can't type any more.

  1. Write anything.
  2. Select the first word manually.
  3. Press space (accidentally?).
  4. You can't type any more.

Add A License

Could you please add a license so contributors are clear about their contributions.

Allow names of people, countries, and languages

I want to use this to have some fun changing news pieces to simple words, but it is hard to do when I cannot use names - such as those of countries, languages and people.

I would like to be able to add a word as a name when the first letter is high case, instead of the word being quickly removed.

Where is the word list?

Hi.... I see that the en.txt file has several thousand words in it. Where is the list of 1000 words in the repo, and what was the original source of the list?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.