Oh, wait. Wtf? On macOS running similar code, it thinks that text is English with 93% confidence, while Norwegian Bokmål is only 4%. Either the iOS language model is messed up or there’s a bug in Damus.

Reply to this note

Please Login to reply.

Discussion

😅🫂

I got down to the bottom of it. I typed in the text wrong. With the ‘ apostrophe, it think it’s English. With the ’ apostrophe, which is what Noshole used, it thinks it’s Norwegian Bokmål with 52% confidence while English is only 41%, which we know is wrong. OK, blame Apple. Maybe we can try to hack it to be smarter such that if your device locale trails the top prediction by X%, we don’t attempt to translate the note.

🕵️‍♂️🔥

Damnit, Apple. Auto-corrected the first apostrophe when I didn’t want it to. It’s ' versus ’

Punctuation matters!

I helped my uncle jack off the horse.

Let’s eat grandma.

😳

But he slipped on a soap opera.

Happened again. I think what I’ll do is convert from one apostrophe ’ to another ' before running the language recognizer as a bandaid fix to Apple’s incorrect language model.

Nobody knows I’m Turkish. 😆

OK, I sent the patch to nostr:npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s to review and the fix seems to work on my local iPhone simulator. There should be fewer wasted sats / translation quota.

https://groups.google.com/a/damus.io/g/patches/c/kpfRQ7b1XN8

🙏

Tim Apple owes me some sats.