Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Juggernaut

Featured Replies

My db consists of transcripts of interviews. For analytical purposes, I want to count how frequently certain words appear. The PatternCount function almost, but not quite, gets me what I want. The problem is this: Suppose I want to know how often the word "my" appears in a line of transcript. I can use

PatternCount(Transcript::Text ; "my")

But this results in a lot of "false positives", e.g. "academy" and "Jeremy". I could eliminate these by using the search string " my" (with a prepended space), but then I miss any time the word "my" appears at the beginning of the text.

Surely there must be some way to do a pattern count for whole words, right? Or some well-known workaround?

Add a space before the text to search and that takes care of at least the problem you mentioned:

PatternCount(" " & Transcript:: Text ; " my")

You could also add a space to the end the same way. In addition you could enclose the first parameter in a Substitute function to turn all carriage returns, periods, commas etc. into spaces:

PatternCount(

Substitute( " " & Transcript:: Text & " " ; [",";" "] ; [".";" "] ; [etc.] ) ;

" my ")

If you're going to reuse the calc, you might consider making it a custom function.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.