Skip to content

Instantly share code, notes, and snippets.

View ghedlund's full-sized avatar

Gregory Hedlund ghedlund

  • Memorial University
  • St. John's, Newfoundland
View GitHub Profile
@ghedlund
ghedlund / IndexOfPhoneticComplexity.groovy
Created March 31, 2025 11:05
Phon 3.x script for IndexOfPhoneticComplexity
/*
* Copyright (C) 2024 Gregory Hedlund
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ghedlund
ghedlund / SyllableMatchList.groovy
Created March 31, 2025 10:48
Syllable match analysis with each syllable in a seaparate row
/*
* Copyright (C) 2024 Gregory Hedlund
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ghedlund
ghedlund / SyllableMatchByGroup.groovy
Last active April 3, 2025 13:02
Report syllable CV match by group
/*
* Copyright (C) 2024 Gregory Hedlund
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ghedlund
ghedlund / ITA.groovy
Last active December 18, 2024 10:59
inter-transcriber agreeement script for Phon 3.x
/*
* Copyright (C) 2024 Gregory Hedlund
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
@ghedlund
ghedlund / ProjectFindAndReplace.groovy
Last active June 30, 2024 23:57
Project Find and Replace for Phon 3.x
/*
* This script is used to find and replace text in a project. Modify the global variables below to setup
* the find and replace settings.
*
* WARNING: This script will modify the project. It is recommended to make a backup of the project before running this script.
* This action cannot be undone. Sessions in open editors will not be updated.
*
* Works with Phon 3.x, not compatible with Phon 4.x
*/
/*
@ghedlund
ghedlund / CopyPhoToMod.groovy
Created January 29, 2024 12:44
Copy %pho to %mod when %mod is empty
/*
* Copyright (C) 2022 Gregory Hedlund
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
/*
* Copyright (C) 2022 Gregory Hedlund
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
/*
* Copyright (C) 2022 Gregory Hedlund
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
/**
* Using:
* - Store script in the __res/phonshell folder of your project
* - Execute script by selecting script from the Tools -> PhonShell scripts menu
* - Select folder containing the .wav files for import, .wav filenames should have the format:
* XXX_participant_experiment_orthography_itemIndex_productionType.wav
* - Script only works from Project Manager window, session will be imported in the currently selected corpus folder,
* session name will match the selected folder name. .wav files will be imported by item index. The fields experiment,
* itemIndex and productionType will be imported as user-defined tiers.
*/
@ghedlund
ghedlund / UnblindIPATarget.groovy
Created October 6, 2022 07:50
Unblind validatd IPA Target for all transcribers
/*
* Copyright (C) 2022 Gregory Hedlund
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software