Wikipedia:Reference desk/Archives/Computing/2017 July 15

Computing desk
< July 14 << Jun | July | Aug >> July 16 >
Welcome to the Wikipedia Computing Reference Desk Archives
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


July 15 edit

Is there an algorithm that counts the number of syllables of a word? edit

I want to make something to calculate the Flesch–Kincaid_readability_tests scores in JavaScript. The page I just mentioned does link to two so-called open-source F-K readability score calculator but I don't see their source code. So are there any reliable algorithm that I can find the source code of? User670839245 (talk) 01:06, 15 July 2017 (UTC)[reply]

The two methods could be to use a binary search of a sorted lookup table that has the number of syllables listed for every word, or to try to dynamically calculate syllables in each word. Perhaps best would be a hybrid of the two, which first looks up a word, and if it doesn't find it, then tries to determine the number of syllables dynamically. I would expect occasional errors in the latter part, so how accurate would it need to be ? (There could even be differences in number of syllables in some "words", based on context, such as "learned".) StuRat (talk) 01:40, 15 July 2017 (UTC)[reply]
A lot more work is done in hyphenation than counting syllables. But, there is some work in counting syllables. LongPipe has a rather good library of work here. 209.149.113.5 (talk) 13:17, 18 July 2017 (UTC)[reply]

Smart Phone edit

The first time I bought it, I “Force stop”[ped] every non-required apps, some of which I “Disable”[d] it. Today I found a ‘resetting‘ feature option. What do I do?:

1) Keep the factory option available by resetting it.

2) Not required, modify like you modify your PC and its applications.

P.S: Which on of the listed above will drain more power?

43.245.120.149 (talk) 18:30, 15 July 2017 (UTC)[reply]

Hello, that depends what type of smartphone it is and what model. Do you use any third-party apps on the smartphone that might cause a system-wide crash which you've described? Be careful of doing a Factory-reset since this will erase all of your contact details of people who you have stored info on.  PrimeArgon  Φ  19:00, 15 July 2017 (UTC)[reply]
I agree. Don't risk "Reset to factory settings" unless it's seriously messed up. That option might reset things you don't want to reset, like the time zone settings, requiring more time to fix (or you may end up using UTC). I'd just use it as is, and avoid the hassle. StuRat (talk) 23:12, 15 July 2017 (UTC)[reply]